]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/async-await/async-await.rs
remove redundant async_closure test in async-await.rs
[rust.git] / src / test / ui / async-await / async-await.rs
index 26404757aa4b5a6b323c33b248358f5c41a76fcf..dbcba812a40caa9c0b89e0139cc73cd8e95ec741 100644 (file)
@@ -70,12 +70,7 @@ fn async_nonmove_block(x: u8) -> impl Future<Output = u8> {
     }
 }
 
-fn async_closure(x: u8) -> impl Future<Output = u8> {
-    (async move |x: u8| -> u8 {
-        wake_and_yield_once().await;
-        x
-    })(x)
-}
+// see async-closure.rs for async_closure
 
 async fn async_fn(x: u8) -> u8 {
     wake_and_yield_once().await;
@@ -192,7 +187,6 @@ macro_rules! test_with_borrow {
     test! {
         async_block,
         async_nonmove_block,
-        async_closure,
         async_fn,
         generic_async_fn,
         async_fn_with_internal_borrow,