2023-10-16 12:36:39 -05:00
|
|
|
// skip-filecheck
|
2022-12-03 16:00:05 -06:00
|
|
|
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();
|
|
|
|
}
|