mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-15 00:41:27 +00:00
18 lines
207 B
Rust
18 lines
207 B
Rust
//@ 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 };
|
|
}
|