rust/tests/ui/union/union-const-eval.rs
Matthew Jasper 982b49494e Remove revisions for THIR unsafeck
This is to make the diff when stabilizing it easier to review.
2024-01-05 09:30:27 +00:00

14 lines
163 B
Rust

// check-pass
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 }];
}