rust/tests/ui/parser/issues/issue-34255-1.rs
2023-01-11 09:32:08 +00:00

11 lines
161 B
Rust

enum Test {
Drill {
field: i32,
}
}
fn main() {
Test::Drill(field: 42);
//~^ ERROR invalid `struct` delimiters or `fn` call arguments
}