]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/union/union-copy.stderr
Auto merge of #91030 - estebank:trait-bounds-are-tricky-2, r=oli-obk
[rust.git] / src / test / ui / union / union-copy.stderr
index 0f47bae7f0fede41ce85502fd44f2445c782ba57..279808dd55bb4dea18fbaa79ccbbcc66d351fb9b 100644 (file)
@@ -6,6 +6,12 @@ LL |     a: std::mem::ManuallyDrop<String>
 ...
 LL | impl Copy for W {}
    |      ^^^^
+   |
+note: the `Copy` impl for `ManuallyDrop<String>` requires that `String: Copy`
+  --> $DIR/union-copy.rs:8:5
+   |
+LL |     a: std::mem::ManuallyDrop<String>
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to previous error