]> git.proxmox.com Git - rustc.git/blame - src/test/ui/union/union-copy.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / union / union-copy.stderr
CommitLineData
b7449926 1error[E0204]: the trait `Copy` may not be implemented for this type
29967ef6 2 --> $DIR/union-copy.rs:12:6
b7449926 3 |
29967ef6
XL
4LL | a: std::mem::ManuallyDrop<String>
5 | --------------------------------- this field does not implement `Copy`
b7449926 6...
532ac7d7 7LL | impl Copy for W {}
b7449926 8 | ^^^^
ee023bcb
FG
9 |
10note: the `Copy` impl for `ManuallyDrop<String>` requires that `String: Copy`
11 --> $DIR/union-copy.rs:8:5
12 |
13LL | a: std::mem::ManuallyDrop<String>
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
b7449926
XL
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0204`.