fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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