mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
16 lines
237 B
Rust
16 lines
237 B
Rust
// skip-filecheck
|
|
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();
|
|
}
|