rust/tests/mir-opt/building/custom/aggregate_exprs.adt.built.after.mir

17 lines
344 B
Rust
Raw Normal View History

2023-03-20 06:32:38 -05:00
// MIR for `adt` after built
fn adt() -> Onion {
2023-06-06 08:47:00 -05:00
let mut _0: Onion;
let mut _1: i32;
let mut _2: Foo;
let mut _3: Bar;
2023-03-20 06:32:38 -05:00
bb0: {
2023-06-06 08:47:00 -05:00
_1 = const 1_i32;
_2 = Foo { a: const 1_i32, b: const 2_i32 };
_3 = Bar::Foo(move _2, _1);
_0 = Onion { neon: ((_3 as variant#0).1: i32) };
return;
2023-03-20 06:32:38 -05:00
}
}