summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/issue-54379.rs
blob: 807c54393f29b55f99a7f6ab1ad141be834bcd66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct MyStruct {
    pub s1: Option<String>,
}

fn main() {
    let thing = MyStruct { s1: None };

    match thing {
        MyStruct { .., Some(_) } => {},
        //~^ ERROR expected `,`
        //~| ERROR expected `}`, found `,`
        _ => {}
    }
}