1 error[E0574]: expected struct, variant or union type, found module `A`
2 --> $DIR/issue-27815.rs:4:13
4 LL | let u = A { x: 1 }; //~ ERROR expected struct, variant or union type, found module `A`
5 | ^ not a struct, variant or union type
7 error[E0574]: expected struct, variant or union type, found builtin type `u32`
8 --> $DIR/issue-27815.rs:5:13
10 LL | let v = u32 { x: 1 }; //~ ERROR expected struct, variant or union type, found builtin type `u32`
11 | ^^^ not a struct, variant or union type
13 error[E0574]: expected struct, variant or union type, found module `A`
14 --> $DIR/issue-27815.rs:7:9
17 | ^ not a struct, variant or union type
19 error[E0574]: expected struct, variant or union type, found builtin type `u32`
20 --> $DIR/issue-27815.rs:9:9
22 LL | u32 { x: 1 } => {}
23 | ^^^ not a struct, variant or union type
25 error: aborting due to 4 previous errors
27 For more information about this error, try `rustc --explain E0574`.