let Foo { .. } = x; //~ ERROR `Foo` does not name a struct
let x = Bar;
- Bar { ..x }; //~ ERROR `Bar` does not name a structure
- let Bar { .. } = x; //~ ERROR `Bar` does not name a struct
+ Bar { ..x }; //~ ERROR empty structs and enum variants with braces are unstable
+ let Bar { .. } = x; //~ ERROR empty structs and enum variants with braces are unstable
match Enum::Bar {
Enum::Bar { .. } //~ ERROR `Enum::Bar` does not name a struct