rust/src/test/ui/resolve/issue-54379.rs
2018-12-25 21:08:33 -07:00

15 lines
304 B
Rust

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 `,`
_ => {}
}
}