summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/recover-field-semi.rs
blob: b703578860ec105683d0abcdf6eec3d71aa89229 (plain)
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() {}