fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0740]: field must implement `Copy` or be wrapped in `ManuallyDrop<...>` to be used in a union 2 --> $DIR/union-with-drop-fields.rs:11:5 3 | 4LL | a: String, 5 | ^^^^^^^^^ 6 | 7 = note: union fields must not have drop side-effects, which is currently enforced via either `Copy` or `ManuallyDrop<...>` 8help: wrap the field type in `ManuallyDrop<...>` 9 | 10LL | a: std::mem::ManuallyDrop<String>, 11 | +++++++++++++++++++++++ + 12 13error[E0740]: field must implement `Copy` or be wrapped in `ManuallyDrop<...>` to be used in a union 14 --> $DIR/union-with-drop-fields.rs:19:5 15 | 16LL | a: S, 17 | ^^^^ 18 | 19 = note: union fields must not have drop side-effects, which is currently enforced via either `Copy` or `ManuallyDrop<...>` 20help: wrap the field type in `ManuallyDrop<...>` 21 | 22LL | a: std::mem::ManuallyDrop<S>, 23 | +++++++++++++++++++++++ + 24 25error[E0740]: field must implement `Copy` or be wrapped in `ManuallyDrop<...>` to be used in a union 26 --> $DIR/union-with-drop-fields.rs:24:5 27 | 28LL | a: T, 29 | ^^^^ 30 | 31 = note: union fields must not have drop side-effects, which is currently enforced via either `Copy` or `ManuallyDrop<...>` 32help: wrap the field type in `ManuallyDrop<...>` 33 | 34LL | a: std::mem::ManuallyDrop<T>, 35 | +++++++++++++++++++++++ + 36 37error: aborting due to 3 previous errors 38 39For more information about this error, try `rustc --explain E0740`.