Skip to content

Commit 5caee41

Browse files
committed
FileCheck inline_closure_captures
1 parent 9d61e6a commit 5caee41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/mir-opt/inline/inline_closure_captures.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 captures.
@@ -10,5 +9,8 @@ fn main() {
109
// EMIT_MIR inline_closure_captures.foo.Inline.after.mir
1110
fn foo<T: Copy>(t: T, q: i32) -> (i32, T) {
1211
let x = |_q| (q, t);
12+
13+
// CHECK-LABEL: fn foo(
14+
// CHECK: (inlined foo::<T>::{closure#0})
1315
x(q)
1416
}

0 commit comments

Comments
 (0)