summary refs log tree commit diff
path: root/src/test/ui/resolve/issue-54379.rs
blob: a48f66bf0fda0a9f389d326fd433c6da8912fe0a (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 pattern does not mention field `s1`
        //~^ ERROR expected `,`
        //~| ERROR expected `}`, found `,`
        _ => {}
    }
}