blob: 32ee4a739ea6ccd2d4e5804a38087f2d791a16b7 [file] [log] [blame]
// check-pass
// revisions: mirunsafeck thirunsafeck
// [thirunsafeck]compile-flags: -Z thir-unsafeck
union U {
a: usize,
b: usize,
}
const C: U = U { a: 10 };
fn main() {
let a: [u8; unsafe { C.a }];
let b: [u8; unsafe { C.b }];
}