summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs/struct-missing-comma.fixed
blob: a28179ba241681ae4ab2d54dc09f22d8fbcb8b80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Issue #50636
// run-rustfix

pub struct S {
    pub foo: u32, //~ expected `,`, or `}`, found keyword `pub`
    //     ~^ HELP try adding a comma: ','
    pub bar: u32
}

fn main() {
    let _ = S { foo: 5, bar: 6 };
}