rust/tests/mir-opt/remove_zsts.rs
2023-01-11 09:32:08 +00:00

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();
}