diff options
Diffstat (limited to 'src/test/ui/compile-fail-migration/wf-enum-fields-struct-variant.stderr')
| -rw-r--r-- | src/test/ui/compile-fail-migration/wf-enum-fields-struct-variant.stderr | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/compile-fail-migration/wf-enum-fields-struct-variant.stderr b/src/test/ui/compile-fail-migration/wf-enum-fields-struct-variant.stderr new file mode 100644 index 00000000000..86a605f073c --- /dev/null +++ b/src/test/ui/compile-fail-migration/wf-enum-fields-struct-variant.stderr @@ -0,0 +1,16 @@ +error[E0277]: the trait bound `A: std::marker::Copy` is not satisfied + --> $DIR/wf-enum-fields-struct-variant.rs:23:9 + | +LL | f: IsCopy<A> //~ ERROR E0277 + | ^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `A` + | + = help: consider adding a `where A: std::marker::Copy` bound +note: required by `IsCopy` + --> $DIR/wf-enum-fields-struct-variant.rs:17:1 + | +LL | struct IsCopy<T:Copy> { + | ^^^^^^^^^^^^^^^^^^^^^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. |
