about summary refs log tree commit diff
path: root/src/test/ui/suggestions/struct-initializer-comma.rs
blob: 613b976848f703807516042c5e512d39335dc720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct Foo {
    first: bool,
    second: u8,
}

fn main() {
    let a = Foo {
        //~^ ERROR missing field
        first: true
        second: 25
        //~^ ERROR expected one of
    };
}