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
336 B
Plaintext
Raw Normal View History

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