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

struct Foo {
    a: u8,
    b: u8
}

fn main() {
    let bar = Foo {
        a: 0,,
          //~^ ERROR expected identifier
        b: 42
    };
}