]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/issue-41073.stderr
Rollup merge of #90498 - joshtriplett:target-tier-policy-draft-updates, r=Mark-Simulacrum
[rust.git] / src / test / ui / union / issue-41073.stderr
1 error[E0740]: unions may not contain fields that need dropping
2   --> $DIR/issue-41073.rs:4:5
3    |
4 LL |     a: A,
5    |     ^^^^
6    |
7 help: wrap the type with `std::mem::ManuallyDrop` and ensure it is manually dropped
8    |
9 LL |     a: std::mem::ManuallyDrop<A>,
10    |        +++++++++++++++++++++++ +
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0740`.