let u = A { x: 1 }; //~ ERROR `A` does not name a structure
let v = u32 { x: 1 }; //~ ERROR `u32` does not name a structure
match () {
- A { x: 1 } => {} //~ ERROR `A` does not name a struct
- u32 { x: 1 } => {} //~ ERROR `u32` does not name a struct
+ A { x: 1 } => {} //~ ERROR expected variant, struct or type alias, found module `A`
+ //~^ ERROR `A` does not name a struct or a struct variant
+ u32 { x: 1 } => {} //~ ERROR expected variant, struct or type alias, found builtin type `u32
+ //~^ ERROR `u32` does not name a struct or a struct variant
}
}