Skip to content

Commit 9d61e6a

Browse files
committed
FileCheck inline_closure_borrows_arg
1 parent de56d2d commit 9d61e6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/mir-opt/inline/inline_closure_borrows_arg.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 -Zunsound-mir-opts
32

43
// Tests that MIR inliner can handle closure arguments,
@@ -14,5 +13,8 @@ fn foo<T: Copy>(_t: T, q: &i32) -> i32 {
1413
let variable = &*r;
1514
*variable
1615
};
16+
17+
// CHECK-LABEL: fn foo(
18+
// CHECK: (inlined foo::<T>::{closure#0})
1719
x(q, q)
1820
}

0 commit comments

Comments
 (0)