summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/custom/aggregate_exprs.adt.built.after.mir
blob: c14882142f56f8d554c2cfad74468e9637503ae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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, _1);
        _0 = Onion { neon: ((_3 as variant#0).1: i32) };
        return;
    }
}