]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-54379.rs
Rollup merge of #106244 - atouchet:readme3, r=workingjubilee
[rust.git] / tests / ui / resolve / issue-54379.rs
1 struct MyStruct {
2     pub s1: Option<String>,
3 }
4
5 fn main() {
6     let thing = MyStruct { s1: None };
7
8     match thing {
9         MyStruct { .., Some(_) } => {},
10         //~^ ERROR expected `,`
11         //~| ERROR expected `}`, found `,`
12         _ => {}
13     }
14 }