]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recovered-struct-variant.rs
Auto merge of #99292 - Aaron1011:stability-use-tree, r=cjgillot
[rust.git] / src / test / ui / parser / recovered-struct-variant.rs
1 enum Foo {
2     A { a, b: usize }
3     //~^ ERROR expected `:`, found `,`
4 }
5
6 fn main() {
7     // no complaints about non-existing fields
8     let f = Foo::A { a:3, b: 4};
9     match f {
10         // no complaints about non-existing fields
11         Foo::A {a, b} => {}
12     }
13 }