]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/union-with-drop-fields.thirunsafeck.stderr
Rollup merge of #86509 - CDirkx:os_str, r=m-ou-se
[rust.git] / src / test / ui / union / union-with-drop-fields.thirunsafeck.stderr
1 error[E0740]: unions may not contain fields that need dropping
2   --> $DIR/union-with-drop-fields.rs:11:5
3    |
4 LL |     a: String,
5    |     ^^^^^^^^^
6    |
7 note: `std::mem::ManuallyDrop` can be used to wrap the type
8   --> $DIR/union-with-drop-fields.rs:11:5
9    |
10 LL |     a: String,
11    |     ^^^^^^^^^
12
13 error[E0740]: unions may not contain fields that need dropping
14   --> $DIR/union-with-drop-fields.rs:19:5
15    |
16 LL |     a: S,
17    |     ^^^^
18    |
19 note: `std::mem::ManuallyDrop` can be used to wrap the type
20   --> $DIR/union-with-drop-fields.rs:19:5
21    |
22 LL |     a: S,
23    |     ^^^^
24
25 error[E0740]: unions may not contain fields that need dropping
26   --> $DIR/union-with-drop-fields.rs:24:5
27    |
28 LL |     a: T,
29    |     ^^^^
30    |
31 note: `std::mem::ManuallyDrop` can be used to wrap the type
32   --> $DIR/union-with-drop-fields.rs:24:5
33    |
34 LL |     a: T,
35    |     ^^^^
36
37 error: aborting due to 3 previous errors
38
39 For more information about this error, try `rustc --explain E0740`.