blob: a48f66bf0fda0a9f389d326fd433c6da8912fe0a [file] [log] [blame]
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 `,`
_ => {}
}
}