rust/tests/ui/parser/recover/recover-field-semi.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
267 B
Rust
Raw Normal View History

struct Foo {
foo: i32;
//~^ ERROR struct fields are separated by `,`
}
union Bar { //~ ERROR
foo: i32;
//~^ ERROR union fields are separated by `,`
}
enum Baz {
Qux { foo: i32; }
//~^ ERROR struct fields are separated by `,`
}
fn main() {}