rust/src/test/ui/union/issue-41073.stderr

15 lines
406 B
Plaintext
Raw Normal View History

2019-07-03 11:02:47 +00:00
error[E0740]: unions may not contain fields that need dropping
--> $DIR/issue-41073.rs:4:5
|
LL | a: A,
| ^^^^
|
2021-11-14 11:04:25 +00:00
help: wrap the type with `std::mem::ManuallyDrop` and ensure it is manually dropped
2019-07-03 11:02:47 +00:00
|
2021-11-14 11:04:25 +00:00
LL | a: std::mem::ManuallyDrop<A>,
2021-11-15 03:47:36 +00:00
| +++++++++++++++++++++++ +
2019-07-03 11:02:47 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0740`.