rust/tests/ui/feature-gates/feature-gate-transparent_unions.rs
2023-01-11 09:32:08 +00:00

8 lines
134 B
Rust

#[repr(transparent)]
union OkButUnstableUnion { //~ ERROR transparent unions are unstable
field: u8,
zst: (),
}
fn main() {}