1 // MIR for `bar` after Inline
4 let mut _0: bool; // return place in scope 0 at $DIR/inline-any-operand.rs:10:13: 10:17
5 let _1: fn(i32, i32) -> bool {foo}; // in scope 0 at $DIR/inline-any-operand.rs:11:9: 11:10
6 let mut _2: fn(i32, i32) -> bool {foo}; // in scope 0 at $DIR/inline-any-operand.rs:12:5: 12:6
7 let mut _3: i32; // in scope 0 at $DIR/inline-any-operand.rs:12:5: 12:13
8 let mut _4: i32; // in scope 0 at $DIR/inline-any-operand.rs:12:5: 12:13
10 debug f => _1; // in scope 1 at $DIR/inline-any-operand.rs:11:9: 11:10
12 debug x => _3; // in scope 2 at $DIR/inline-any-operand.rs:16:8: 16:9
13 debug y => _4; // in scope 2 at $DIR/inline-any-operand.rs:16:16: 16:17
18 StorageLive(_1); // scope 0 at $DIR/inline-any-operand.rs:11:9: 11:10
19 _1 = foo; // scope 0 at $DIR/inline-any-operand.rs:11:13: 11:16
21 // + span: $DIR/inline-any-operand.rs:11:13: 11:16
22 // + literal: Const { ty: fn(i32, i32) -> bool {foo}, val: Value(Scalar(<ZST>)) }
23 StorageLive(_2); // scope 1 at $DIR/inline-any-operand.rs:12:5: 12:6
24 _2 = _1; // scope 1 at $DIR/inline-any-operand.rs:12:5: 12:6
25 _3 = const 1_i32; // scope 1 at $DIR/inline-any-operand.rs:12:5: 12:13
26 _4 = const -1_i32; // scope 1 at $DIR/inline-any-operand.rs:12:5: 12:13
27 _0 = Eq(move _3, move _4); // scope 2 at $DIR/inline-any-operand.rs:17:5: 17:11
28 StorageDead(_2); // scope 1 at $DIR/inline-any-operand.rs:12:12: 12:13
29 StorageDead(_1); // scope 0 at $DIR/inline-any-operand.rs:13:1: 13:2
30 return; // scope 0 at $DIR/inline-any-operand.rs:13:2: 13:2