rust/tests/ui/traits/as-struct-constructor.stderr

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

10 lines
338 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0574]: expected struct, variant or union type, found trait `TraitNotAStruct`
2021-02-08 22:15:45 +00:00
--> $DIR/as-struct-constructor.rs:4:5
2018-08-08 12:28:26 +00:00
|
LL | TraitNotAStruct{ value: 0 };
| ^^^^^^^^^^^^^^^ not a struct, variant or union type
error: aborting due to 1 previous error
2018-08-08 12:28:26 +00:00
2019-10-11 13:23:18 +00:00
For more information about this error, try `rustc --explain E0574`.