rust/tests/ui/issues/issue-27815.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
894 B
Plaintext
Raw Normal View History

2018-07-15 21:11:54 +00:00
error[E0574]: expected struct, variant or union type, found module `A`
2018-12-25 15:56:47 +00:00
--> $DIR/issue-27815.rs:4:13
2018-07-15 21:11:54 +00:00
|
2019-03-09 12:03:44 +00:00
LL | let u = A { x: 1 };
2018-07-15 21:11:54 +00:00
| ^ not a struct, variant or union type
error[E0574]: expected struct, variant or union type, found builtin type `u32`
2018-12-25 15:56:47 +00:00
--> $DIR/issue-27815.rs:5:13
2018-07-15 21:11:54 +00:00
|
2019-03-09 12:03:44 +00:00
LL | let v = u32 { x: 1 };
2018-07-15 21:11:54 +00:00
| ^^^ not a struct, variant or union type
error[E0574]: expected struct, variant or union type, found module `A`
2018-12-25 15:56:47 +00:00
--> $DIR/issue-27815.rs:7:9
2018-07-15 21:11:54 +00:00
|
LL | A { x: 1 } => {}
| ^ not a struct, variant or union type
error[E0574]: expected struct, variant or union type, found builtin type `u32`
2018-12-25 15:56:47 +00:00
--> $DIR/issue-27815.rs:9:9
2018-07-15 21:11:54 +00:00
|
LL | u32 { x: 1 } => {}
| ^^^ not a struct, variant or union type
error: aborting due to 4 previous errors
2019-10-11 13:23:18 +00:00
For more information about this error, try `rustc --explain E0574`.