rust/tests/ui/resolve/issue-54379.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
258 B
Rust
Raw Normal View History

struct MyStruct {
pub s1: Option<String>,
}
fn main() {
let thing = MyStruct { s1: None };
match thing {
MyStruct { .., Some(_) } => {},
2018-11-27 03:56:36 -06:00
//~^ ERROR expected `,`
//~| ERROR expected `}`, found `,`
_ => {}
}
}