2021-03-31 03:09:16 -05:00
|
|
|
// stderr-per-bitwidth
|
2018-06-30 14:25:07 -05:00
|
|
|
#[derive(Copy, Clone)]
|
|
|
|
union Foo {
|
|
|
|
a: isize,
|
|
|
|
b: (),
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Bar {
|
|
|
|
Boo = [unsafe { Foo { b: () }.a }; 4][3],
|
2022-08-01 18:05:20 -05:00
|
|
|
//~^ ERROR evaluation of constant value failed
|
|
|
|
//~| uninitialized
|
2018-06-30 14:25:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
assert_ne!(Bar::Boo as isize, 0);
|
|
|
|
}
|