From 599d456a7532aa5de020b42fd1d9d936fa647573 Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Mon, 8 Apr 2024 21:09:13 -0400 Subject: Make the computation of coroutine_captures_by_ref_ty more sophisticated --- tests/ui/async-await/async-borrowck-escaping-closure-error.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/ui/async-await/async-borrowck-escaping-closure-error.rs') 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> { let x = 0u32; Box::new((async || x)()) //~^ ERROR cannot return value referencing local variable `x` - //~| ERROR cannot return value referencing temporary value } fn main() { -- cgit 1.4.1-3-g733a5