mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
15 lines
219 B
Rust
15 lines
219 B
Rust
union Foo {
|
|
x: (),
|
|
y: u64,
|
|
}
|
|
|
|
// EMIT_MIR remove_zsts.get_union.RemoveZsts.diff
|
|
// EMIT_MIR remove_zsts.get_union.PreCodegen.after.mir
|
|
fn get_union() -> Foo {
|
|
Foo { x: () }
|
|
}
|
|
|
|
fn main() {
|
|
get_union();
|
|
}
|