error[E0740]: unions may not contain fields that need dropping --> $DIR/union-with-drop-fields.rs:11:5 | LL | a: String, | ^^^^^^^^^ | note: `std::mem::ManuallyDrop` can be used to wrap the type --> $DIR/union-with-drop-fields.rs:11:5 | LL | a: String, | ^^^^^^^^^ error[E0740]: unions may not contain fields that need dropping --> $DIR/union-with-drop-fields.rs:19:5 | LL | a: S, | ^^^^ | note: `std::mem::ManuallyDrop` can be used to wrap the type --> $DIR/union-with-drop-fields.rs:19:5 | LL | a: S, | ^^^^ error[E0740]: unions may not contain fields that need dropping --> $DIR/union-with-drop-fields.rs:24:5 | LL | a: T, | ^^^^ | note: `std::mem::ManuallyDrop` can be used to wrap the type --> $DIR/union-with-drop-fields.rs:24:5 | LL | a: T, | ^^^^ error: aborting due to 3 previous errors For more information about this error, try `rustc --explain E0740`.