diff options
Diffstat (limited to 'src/test/ui/async-await/async-borrowck-escaping-block-error.rs')
| -rw-r--r-- | src/test/ui/async-await/async-borrowck-escaping-block-error.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/ui/async-await/async-borrowck-escaping-block-error.rs b/src/test/ui/async-await/async-borrowck-escaping-block-error.rs deleted file mode 100644 index ec752c15fa2..00000000000 --- a/src/test/ui/async-await/async-borrowck-escaping-block-error.rs +++ /dev/null @@ -1,18 +0,0 @@ -// edition:2018 -// run-rustfix - -fn test_boxed() -> Box<impl std::future::Future<Output = u32>> { - let x = 0u32; - Box::new(async { x } ) - //~^ ERROR E0373 -} - -fn test_ref(x: &u32) -> impl std::future::Future<Output = u32> + '_ { - async { *x } - //~^ ERROR E0373 -} - -fn main() { - let _ = test_boxed(); - let _ = test_ref(&0u32); -} |
