about summary refs log tree commit diff
path: root/src/test/ui/union/union-custom-drop.stderr
blob: ee2333f905fb4106ed234eb144621456a2c3621d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0740]: unions may not contain fields that need dropping
  --> $DIR/union-custom-drop.rs:7:5
   |
LL |     bar: Bar,
   |     ^^^^^^^^
   |
note: `std::mem::ManuallyDrop` can be used to wrap the type
  --> $DIR/union-custom-drop.rs:7:5
   |
LL |     bar: Bar,
   |     ^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0740`.