about summary refs log tree commit diff
path: root/tests/ui/async-await/async-borrowck-escaping-closure-error.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-04-08 21:09:13 -0400
committerMichael Goulet <michael@errs.io>2024-04-10 13:39:53 -0400
commit599d456a7532aa5de020b42fd1d9d936fa647573 (patch)
treee583a7195c2556bbdb6a10c5c3c66b204295c31f /tests/ui/async-await/async-borrowck-escaping-closure-error.rs
parent568703c4bd5102c2d596e75db492c37d0102d16b (diff)
downloadrust-599d456a7532aa5de020b42fd1d9d936fa647573.tar.gz
rust-599d456a7532aa5de020b42fd1d9d936fa647573.zip
Make the computation of coroutine_captures_by_ref_ty more sophisticated
Diffstat (limited to 'tests/ui/async-await/async-borrowck-escaping-closure-error.rs')
-rw-r--r--tests/ui/async-await/async-borrowck-escaping-closure-error.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/ui/async-await/async-borrowck-escaping-closure-error.rs b/tests/ui/async-await/async-borrowck-escaping-closure-error.rs
index 1990d0ffe2a..ffb97ca04ac 100644
--- a/tests/ui/async-await/async-borrowck-escaping-closure-error.rs
+++ b/tests/ui/async-await/async-borrowck-escaping-closure-error.rs
@@ -5,7 +5,6 @@ fn foo() -> Box<dyn std::future::Future<Output = u32>> {
     let x = 0u32;
     Box::new((async || x)())
     //~^ ERROR cannot return value referencing local variable `x`
-    //~| ERROR cannot return value referencing temporary value
 }
 
 fn main() {