We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60f480d commit d023e47Copy full SHA for d023e47
src/test/ui/async-await/async-await.rs
@@ -70,12 +70,7 @@ fn async_nonmove_block(x: u8) -> impl Future<Output = u8> {
70
}
71
72
73
-fn async_closure(x: u8) -> impl Future<Output = u8> {
74
- (async move |x: u8| -> u8 {
75
- wake_and_yield_once().await;
76
- x
77
- })(x)
78
-}
+// see async-closure.rs for async_closure
79
80
async fn async_fn(x: u8) -> u8 {
81
wake_and_yield_once().await;
@@ -192,7 +187,6 @@ fn main() {
192
187
test! {
193
188
async_block,
194
189
async_nonmove_block,
195
- async_closure,
196
190
async_fn,
197
191
generic_async_fn,
198
async_fn_with_internal_borrow,
0 commit comments