1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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() {}