]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/remove_zsts.rs
Auto merge of #106227 - bryangarza:ctfe-limit, r=oli-obk
[rust.git] / tests / mir-opt / remove_zsts.rs
1 union Foo {
2     x: (),
3     y: u64,
4 }
5
6 // EMIT_MIR remove_zsts.get_union.RemoveZsts.diff
7 // EMIT_MIR remove_zsts.get_union.PreCodegen.after.mir
8 fn get_union() -> Foo {
9     Foo { x: () }
10 }
11
12 fn main() {
13     get_union();
14 }