]> git.lizzy.rs Git - rust.git/blob - tests/ui/union/union-copy.stderr
Rollup merge of #107780 - compiler-errors:instantiate-binder, r=lcnr
[rust.git] / tests / ui / union / union-copy.stderr
1 error[E0204]: the trait `Copy` may not be implemented for this type
2   --> $DIR/union-copy.rs:12:15
3    |
4 LL |     a: std::mem::ManuallyDrop<String>
5    |     --------------------------------- this field does not implement `Copy`
6 ...
7 LL | impl Copy for W {}
8    |               ^
9    |
10 note: the `Copy` impl for `ManuallyDrop<String>` requires that `String: Copy`
11   --> $DIR/union-copy.rs:8:8
12    |
13 LL |     a: std::mem::ManuallyDrop<String>
14    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0204`.