Skip to content

Commit

Permalink
remove redundant async_closure test in async-await.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
delan committed Jul 12, 2019
1 parent 60f480d commit d023e47
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/test/ui/async-await/async-await.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -192,7 +187,6 @@ fn main() {
test! {
async_block,
async_nonmove_block,
async_closure,
async_fn,
generic_async_fn,
async_fn_with_internal_borrow,
Expand Down

0 comments on commit d023e47

Please sign in to comment.