summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs/struct-missing-comma.rs
blob: b6d6c9b8f87628599e23223db499e53acb4ca25f (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 };
}