mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
982b49494e
This is to make the diff when stabilizing it easier to review.
14 lines
163 B
Rust
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 }];
|
|
}
|