2023-03-10 03:53:50 -06:00
|
|
|
error: this async expression only awaits a single future
|
2023-03-24 08:04:35 -05:00
|
|
|
--> $DIR/redundant_async_block.rs:15:13
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | let x = async { f.await };
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: you can reduce it to: `f`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-async-block` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: this async expression only awaits a single future
|
2023-03-24 08:04:35 -05:00
|
|
|
--> $DIR/redundant_async_block.rs:48:16
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | let fut2 = async { fut1.await };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `fut1`
|
|
|
|
|
|
|
|
error: this async expression only awaits a single future
|
2023-03-24 08:04:35 -05:00
|
|
|
--> $DIR/redundant_async_block.rs:51:16
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | let fut2 = async move { fut1.await };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `fut1`
|
|
|
|
|
|
|
|
error: this async expression only awaits a single future
|
2023-03-24 08:04:35 -05:00
|
|
|
--> $DIR/redundant_async_block.rs:53:15
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | let fut = async { async { 42 }.await };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `async { 42 }`
|
|
|
|
|
2023-03-24 08:04:35 -05:00
|
|
|
error: this async expression only awaits a single future
|
|
|
|
--> $DIR/redundant_async_block.rs:72:5
|
|
|
|
|
|
|
|
|
LL | async move { fut.await }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `fut`
|
|
|
|
|
|
|
|
error: this async expression only awaits a single future
|
|
|
|
--> $DIR/redundant_async_block.rs:85:5
|
|
|
|
|
|
|
|
|
LL | async move { fut.await }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `fut`
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2023-03-10 03:53:50 -06:00
|
|
|
|