2018-12-19 13:58:20 -06:00
|
|
|
error[E0740]: unions may not contain fields that need dropping
|
2021-05-13 09:42:25 -05:00
|
|
|
--> $DIR/union-with-drop-fields.rs:11:5
|
2018-12-19 13:58:20 -06:00
|
|
|
|
|
|
|
|
LL | a: String,
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2021-11-14 05:04:25 -06:00
|
|
|
help: wrap the type with `std::mem::ManuallyDrop` and ensure it is manually dropped
|
2018-12-19 13:58:20 -06:00
|
|
|
|
|
2021-11-14 05:04:25 -06:00
|
|
|
LL | a: std::mem::ManuallyDrop<String>,
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2018-12-19 13:58:20 -06:00
|
|
|
|
|
|
|
error[E0740]: unions may not contain fields that need dropping
|
2021-05-13 09:42:25 -05:00
|
|
|
--> $DIR/union-with-drop-fields.rs:19:5
|
2018-12-19 13:58:20 -06:00
|
|
|
|
|
|
|
|
LL | a: S,
|
|
|
|
| ^^^^
|
|
|
|
|
|
2021-11-14 05:04:25 -06:00
|
|
|
help: wrap the type with `std::mem::ManuallyDrop` and ensure it is manually dropped
|
2018-12-19 13:58:20 -06:00
|
|
|
|
|
2021-11-14 05:04:25 -06:00
|
|
|
LL | a: std::mem::ManuallyDrop<S>,
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~
|
2018-12-19 13:58:20 -06:00
|
|
|
|
|
|
|
error[E0740]: unions may not contain fields that need dropping
|
2021-05-13 09:42:25 -05:00
|
|
|
--> $DIR/union-with-drop-fields.rs:24:5
|
2018-12-19 13:58:20 -06:00
|
|
|
|
|
|
|
|
LL | a: T,
|
|
|
|
| ^^^^
|
|
|
|
|
|
2021-11-14 05:04:25 -06:00
|
|
|
help: wrap the type with `std::mem::ManuallyDrop` and ensure it is manually dropped
|
2018-12-19 13:58:20 -06:00
|
|
|
|
|
2021-11-14 05:04:25 -06:00
|
|
|
LL | a: std::mem::ManuallyDrop<T>,
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~
|
2018-12-19 13:58:20 -06:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0740`.
|