]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/union-custom-drop.stderr
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[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 help: wrap the type with `std::mem::ManuallyDrop` and ensure it is manually dropped
8    |
9 LL |     bar: std::mem::ManuallyDrop<Bar>,
10    |          +++++++++++++++++++++++   +
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0740`.