]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/union-custom-drop.stderr
Rollup merge of #65777 - matthewjasper:allow-impl-trait-expansion, r=davidtwco
[rust.git] / src / test / ui / union / union-custom-drop.stderr
1 error[E0740]: unions may not contain fields that need dropping
2   --> $DIR/union-custom-drop.rs:7:5
3    |
4 LL |     bar: Bar,
5    |     ^^^^^^^^
6    |
7 note: `std::mem::ManuallyDrop` can be used to wrap the type
8   --> $DIR/union-custom-drop.rs:7:5
9    |
10 LL |     bar: Bar,
11    |     ^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0740`.