diff options
| author | Ryan Mehri <ryan.mehri1@gmail.com> | 2023-10-20 11:28:38 -0700 |
|---|---|---|
| committer | Ryan Mehri <ryan.mehri1@gmail.com> | 2023-10-25 15:22:01 -0700 |
| commit | 9d61e6a4e46899a00da5908cf6db34a7d2bebb28 (patch) | |
| tree | 475ac119c8cb22ebca9900e447a0d3977a044516 | |
| parent | de56d2d9b2c501985b5f30eb6506475bf312c0c0 (diff) | |
| download | rust-9d61e6a4e46899a00da5908cf6db34a7d2bebb28.tar.gz rust-9d61e6a4e46899a00da5908cf6db34a7d2bebb28.zip | |
FileCheck inline_closure_borrows_arg
| -rw-r--r-- | tests/mir-opt/inline/inline_closure_borrows_arg.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/mir-opt/inline/inline_closure_borrows_arg.rs b/tests/mir-opt/inline/inline_closure_borrows_arg.rs index a5cc7d10365..1570ab057c7 100644 --- a/tests/mir-opt/inline/inline_closure_borrows_arg.rs +++ b/tests/mir-opt/inline/inline_closure_borrows_arg.rs @@ -1,4 +1,3 @@ -// skip-filecheck // compile-flags: -Z span_free_formats -Zunsound-mir-opts // Tests that MIR inliner can handle closure arguments, @@ -14,5 +13,8 @@ fn foo<T: Copy>(_t: T, q: &i32) -> i32 { let variable = &*r; *variable }; + + // CHECK-LABEL: fn foo( + // CHECK: (inlined foo::<T>::{closure#0}) x(q, q) } |
