]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-untagged_unions.stderr
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[rust.git] / src / test / ui / feature-gates / feature-gate-untagged_unions.stderr
1 error[E0658]: unions with non-`Copy` fields other than `ManuallyDrop<T>` are unstable
2   --> $DIR/feature-gate-untagged_unions.rs:20:5
3    |
4 LL |     a: std::cell::RefCell<i32>,
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: see issue #55149 <https://github.com/rust-lang/rust/issues/55149> for more information
8    = help: add `#![feature(untagged_unions)]` to the crate attributes to enable
9
10 error[E0740]: unions may not contain fields that need dropping
11   --> $DIR/feature-gate-untagged_unions.rs:16:5
12    |
13 LL |     a: String,
14    |     ^^^^^^^^^
15    |
16 help: wrap the type with `std::mem::ManuallyDrop` and ensure it is manually dropped
17    |
18 LL |     a: std::mem::ManuallyDrop<String>,
19    |        +++++++++++++++++++++++      +
20
21 error[E0740]: unions may not contain fields that need dropping
22   --> $DIR/feature-gate-untagged_unions.rs:24:5
23    |
24 LL |     a: T,
25    |     ^^^^
26    |
27 help: wrap the type with `std::mem::ManuallyDrop` and ensure it is manually dropped
28    |
29 LL |     a: std::mem::ManuallyDrop<T>,
30    |        +++++++++++++++++++++++ +
31
32 error: aborting due to 3 previous errors
33
34 Some errors have detailed explanations: E0658, E0740.
35 For more information about an error, try `rustc --explain E0658`.