diff options
Diffstat (limited to 'tests/ui/traits/as-struct-constructor.stderr')
-rw-r--r-- | tests/ui/traits/as-struct-constructor.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/traits/as-struct-constructor.stderr b/tests/ui/traits/as-struct-constructor.stderr new file mode 100644 index 000000000..d06e85f3a --- /dev/null +++ b/tests/ui/traits/as-struct-constructor.stderr @@ -0,0 +1,9 @@ +error[E0574]: expected struct, variant or union type, found trait `TraitNotAStruct` + --> $DIR/as-struct-constructor.rs:4:5 + | +LL | TraitNotAStruct{ value: 0 }; + | ^^^^^^^^^^^^^^^ not a struct, variant or union type + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0574`. |