]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-27815.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-27815.stderr
1 error[E0574]: expected struct, variant or union type, found module `A`
2   --> $DIR/issue-27815.rs:4:13
3    |
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
6
7 error[E0574]: expected struct, variant or union type, found builtin type `u32`
8   --> $DIR/issue-27815.rs:5:13
9    |
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
12
13 error[E0574]: expected struct, variant or union type, found module `A`
14   --> $DIR/issue-27815.rs:7:9
15    |
16 LL |         A { x: 1 } => {}
17    |         ^ not a struct, variant or union type
18
19 error[E0574]: expected struct, variant or union type, found builtin type `u32`
20   --> $DIR/issue-27815.rs:9:9
21    |
22 LL |         u32 { x: 1 } => {}
23    |         ^^^ not a struct, variant or union type
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0574`.