rust/tests/crashes/123710.rs

18 lines
207 B
Rust
Raw Normal View History

2024-04-16 18:01:07 -05:00
//@ known-bug: #123710
#[repr(packed)]
#[repr(u32)]
enum E {
A,
B,
C,
}
fn main() {
union InvalidTag {
int: u32,
e: E,
}
let _invalid_tag = InvalidTag { int: 4 };
}