]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-transparent_unions.stderr
Implement RFC 2645 (transparent enums and unions)
[rust.git] / src / test / ui / feature-gates / feature-gate-transparent_unions.stderr
1 error[E0658]: transparent unions are unstable
2   --> $DIR/feature-gate-transparent_unions.rs:2:1
3    |
4 LL | / union OkButUnstableUnion {
5 LL | |     field: u8,
6 LL | |     zst: (),
7 LL | | }
8    | |_^
9    |
10    = note: for more information, see https://github.com/rust-lang/rust/issues/60405
11    = help: add #![feature(transparent_unions)] to the crate attributes to enable
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0658`.