rust/tests/ui/feature-gates/feature-gate-transparent_unions.rs

8 lines
134 B
Rust
Raw Normal View History

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