mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
14 lines
164 B
Rust
14 lines
164 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 }];
|
|
}
|