about summary refs log tree commit diff
path: root/src/test/ui/structs/struct-missing-comma.rs
blob: 4c3cac3369136a4854c089e38cd63044b7b240ef (plain)
1
2
3
4
5
6
7
8
9
10
11
// Issue #50636

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

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