Skip to content

Commit d023e47

Browse files
committed
remove redundant async_closure test in async-await.rs
1 parent 60f480d commit d023e47

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/test/ui/async-await/async-await.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,7 @@ fn async_nonmove_block(x: u8) -> impl Future<Output = u8> {
7070
}
7171
}
7272

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-
}
73+
// see async-closure.rs for async_closure
7974

8075
async fn async_fn(x: u8) -> u8 {
8176
wake_and_yield_once().await;
@@ -192,7 +187,6 @@ fn main() {
192187
test! {
193188
async_block,
194189
async_nonmove_block,
195-
async_closure,
196190
async_fn,
197191
generic_async_fn,
198192
async_fn_with_internal_borrow,

0 commit comments

Comments
 (0)