fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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