1 // compile-flags: -Z span_free_formats 2 3 // Tests that MIR inliner works for any operand 4 main()5fn main() { 6 println!("{}", bar()); 7 } 8 9 // EMIT_MIR inline_any_operand.bar.Inline.after.mir bar() -> bool10fn bar() -> bool { 11 let f = foo; 12 f(1, -1) 13 } 14 15 #[inline(always)] foo(x: i32, y: i32) -> bool16fn foo(x: i32, y: i32) -> bool { 17 x == y 18 } 19