1 // Test that deaggregate fires more than once per block
8 fn test(x: i32) -> [Foo; 2] {
13 // Make sure the function actually gets instantiated.
18 // START rustc.test.Deaggregator.before.mir
23 // _2 = Foo::A(move _3,);
26 // _4 = Foo::A(move _5,);
28 // _0 = [move _2, move _4];
32 // END rustc.test.Deaggregator.before.mir
33 // START rustc.test.Deaggregator.after.mir
38 // ((_2 as A).0: i32) = move _3;
39 // discriminant(_2) = 0;
42 // ((_4 as A).0: i32) = move _5;
43 // discriminant(_4) = 0;
45 // _0 = [move _2, move _4];
49 // END rustc.test.Deaggregator.after.mir