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

17 lines
354 B
Rust

// MIR for `adt` after built
fn adt() -> Onion {
let mut _0: Onion;
let mut _1: i32;
let mut _2: Foo;
let mut _3: Bar;
bb0: {
_1 = const 1_i32;
_2 = Foo { a: const 1_i32, b: const 2_i32 };
_3 = Bar::Foo(move _2, copy _1);
_0 = Onion { neon: copy ((_3 as variant#0).1: i32) };
return;
}
}