1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// stderr-per-bitwidth #[derive(Copy, Clone)] union Foo { a: isize, b: (), } enum Bar { Boo = [unsafe { Foo { b: () }.a }; 4][3], //~^ ERROR evaluation of constant value failed //~| uninitialized } fn main() { assert_ne!(Bar::Boo as isize, 0); }