diff options
| author | Ryan Mehri <ryan.mehri1@gmail.com> | 2023-10-20 11:30:04 -0700 |
|---|---|---|
| committer | Ryan Mehri <ryan.mehri1@gmail.com> | 2023-10-25 15:22:01 -0700 |
| commit | 5caee416a5c53c997c35d2358cb61e2499a1e263 (patch) | |
| tree | 4d1963f34d929ae6229ea719744d59fdbb9cabb9 | |
| parent | 9d61e6a4e46899a00da5908cf6db34a7d2bebb28 (diff) | |
| download | rust-5caee416a5c53c997c35d2358cb61e2499a1e263.tar.gz rust-5caee416a5c53c997c35d2358cb61e2499a1e263.zip | |
FileCheck inline_closure_captures
| -rw-r--r-- | tests/mir-opt/inline/inline_closure_captures.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/mir-opt/inline/inline_closure_captures.rs b/tests/mir-opt/inline/inline_closure_captures.rs index 0d95564e5dd..2b08b106887 100644 --- a/tests/mir-opt/inline/inline_closure_captures.rs +++ b/tests/mir-opt/inline/inline_closure_captures.rs @@ -1,4 +1,3 @@ -// skip-filecheck // compile-flags: -Z span_free_formats // Tests that MIR inliner can handle closure captures. @@ -10,5 +9,8 @@ fn main() { // EMIT_MIR inline_closure_captures.foo.Inline.after.mir fn foo<T: Copy>(t: T, q: i32) -> (i32, T) { let x = |_q| (q, t); + + // CHECK-LABEL: fn foo( + // CHECK: (inlined foo::<T>::{closure#0}) x(q) } |
