]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/issue-41073.stderr
Fixes #41073, it is no longer an ICE
[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 note: `std::mem::ManuallyDrop` can be used to wrap the type
8   --> $DIR/issue-41073.rs:4:5
9    |
10 LL |     a: A,
11    |     ^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0740`.