1 // compile-flags: -Z span_free_formats
3 // Tests that MIR inliner can handle closure arguments. (#45894)
6 println!("{}", foo(0, 14));
9 fn foo<T: Copy>(_t: T, q: i32) -> i32 {
15 // START rustc.foo.Inline.after.mir
19 // _3 = [closure@HirId { owner: DefIndex(13), local_id: 15 }];
26 // _5 = (move _6, move _7);
27 // _8 = move (_5.0: i32);
28 // _9 = move (_5.1: i32);
34 // END rustc.foo.Inline.after.mir