We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5caee41 commit 7ee05d2Copy full SHA for 7ee05d2
tests/mir-opt/inline/inline_closure.rs
@@ -1,4 +1,3 @@
1
-// skip-filecheck
2
// compile-flags: -Z span_free_formats
3
4
// Tests that MIR inliner can handle closure arguments. (#45894)
@@ -10,5 +9,8 @@ fn main() {
10
9
// EMIT_MIR inline_closure.foo.Inline.after.mir
11
fn foo<T: Copy>(_t: T, q: i32) -> i32 {
12
let x = |_t, _q| _t;
+
13
+ // CHECK-LABEL: fn foo(
14
+ // CHECK: (inlined foo::<T>::{closure#0})
15
x(q, q)
16
}
0 commit comments