mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
17 lines
277 B
Rust
17 lines
277 B
Rust
//@ stderr-per-bitwidth
|
|
//@ ignore-parallel-frontend different alloc ids
|
|
#[derive(Copy, Clone)]
|
|
union Foo {
|
|
a: isize,
|
|
b: (),
|
|
}
|
|
|
|
enum Bar {
|
|
Boo = [unsafe { Foo { b: () }.a }; 4][3],
|
|
//~^ ERROR uninitialized
|
|
}
|
|
|
|
fn main() {
|
|
assert_ne!(Bar::Boo as isize, 0);
|
|
}
|