fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0740]: unions may not contain fields that need dropping 2 --> $DIR/union-with-drop-fields.rs:9:5 3 | 4LL | a: String, 5 | ^^^^^^^^^ 6 | 7note: `std::mem::ManuallyDrop` can be used to wrap the type 8 --> $DIR/union-with-drop-fields.rs:9:5 9 | 10LL | a: String, 11 | ^^^^^^^^^ 12 13error[E0740]: unions may not contain fields that need dropping 14 --> $DIR/union-with-drop-fields.rs:17:5 15 | 16LL | a: S, 17 | ^^^^ 18 | 19note: `std::mem::ManuallyDrop` can be used to wrap the type 20 --> $DIR/union-with-drop-fields.rs:17:5 21 | 22LL | a: S, 23 | ^^^^ 24 25error[E0740]: unions may not contain fields that need dropping 26 --> $DIR/union-with-drop-fields.rs:22:5 27 | 28LL | a: T, 29 | ^^^^ 30 | 31note: `std::mem::ManuallyDrop` can be used to wrap the type 32 --> $DIR/union-with-drop-fields.rs:22:5 33 | 34LL | a: T, 35 | ^^^^ 36 37error: aborting due to 3 previous errors 38 39For more information about this error, try `rustc --explain E0740`.