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