mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
17 lines
267 B
Rust
17 lines
267 B
Rust
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() {}
|