Skip to content

Commit 7ee05d2

Browse files
committed
FileCheck inline_closure
1 parent 5caee41 commit 7ee05d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/mir-opt/inline/inline_closure.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// skip-filecheck
21
// compile-flags: -Z span_free_formats
32

43
// Tests that MIR inliner can handle closure arguments. (#45894)
@@ -10,5 +9,8 @@ fn main() {
109
// EMIT_MIR inline_closure.foo.Inline.after.mir
1110
fn foo<T: Copy>(_t: T, q: i32) -> i32 {
1211
let x = |_t, _q| _t;
12+
13+
// CHECK-LABEL: fn foo(
14+
// CHECK: (inlined foo::<T>::{closure#0})
1315
x(q, q)
1416
}

0 commit comments

Comments
 (0)