1 error[E0740]: unions cannot contain fields that may need dropping
2 --> $DIR/union-with-drop-fields.rs:11:5
7 = note: a type is guaranteed not to need dropping when it implements `Copy`, or when it is the special `ManuallyDrop<_>` type
8 help: when the type does not implement `Copy`, wrap it inside a `ManuallyDrop<_>` and ensure it is manually dropped
10 LL | a: std::mem::ManuallyDrop<String>,
11 | +++++++++++++++++++++++ +
13 error[E0740]: unions cannot contain fields that may need dropping
14 --> $DIR/union-with-drop-fields.rs:19:5
19 = note: a type is guaranteed not to need dropping when it implements `Copy`, or when it is the special `ManuallyDrop<_>` type
20 help: when the type does not implement `Copy`, wrap it inside a `ManuallyDrop<_>` and ensure it is manually dropped
22 LL | a: std::mem::ManuallyDrop<S>,
23 | +++++++++++++++++++++++ +
25 error[E0740]: unions cannot contain fields that may need dropping
26 --> $DIR/union-with-drop-fields.rs:24:5
31 = note: a type is guaranteed not to need dropping when it implements `Copy`, or when it is the special `ManuallyDrop<_>` type
32 help: when the type does not implement `Copy`, wrap it inside a `ManuallyDrop<_>` and ensure it is manually dropped
34 LL | a: std::mem::ManuallyDrop<T>,
35 | +++++++++++++++++++++++ +
37 error: aborting due to 3 previous errors
39 For more information about this error, try `rustc --explain E0740`.