2020-09-10 10:47:07 -05:00
|
|
|
error: an async construct yields a type which is itself awaitable
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/async_yields_async.rs:39:9
|
2020-09-10 10:47:07 -05:00
|
|
|
|
|
|
|
|
LL | let _h = async {
|
2022-11-28 02:41:31 -06:00
|
|
|
| _____________________-
|
2022-12-27 13:03:59 -06:00
|
|
|
LL | |/ async {
|
2020-09-10 10:47:07 -05:00
|
|
|
LL | || 3
|
|
|
|
LL | || }
|
|
|
|
| ||_________^ awaitable value not awaited
|
2022-11-28 02:41:31 -06:00
|
|
|
LL | | };
|
|
|
|
| |______- outer async construct
|
2020-09-10 10:47:07 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::async-yields-async` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::async_yields_async)]`
|
2020-09-10 10:47:07 -05:00
|
|
|
help: consider awaiting this value
|
|
|
|
|
|
2021-08-11 09:21:33 -05:00
|
|
|
LL ~ async {
|
|
|
|
LL + 3
|
|
|
|
LL + }.await
|
2020-09-10 10:47:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
error: an async construct yields a type which is itself awaitable
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/async_yields_async.rs:44:9
|
2020-09-10 10:47:07 -05:00
|
|
|
|
|
|
|
|
LL | let _i = async {
|
|
|
|
| ____________________-
|
|
|
|
LL | | CustomFutureType
|
|
|
|
| | ^^^^^^^^^^^^^^^^
|
|
|
|
| | |
|
|
|
|
| | awaitable value not awaited
|
|
|
|
| | help: consider awaiting this value: `CustomFutureType.await`
|
|
|
|
LL | | };
|
|
|
|
| |_____- outer async construct
|
|
|
|
|
|
|
|
error: an async construct yields a type which is itself awaitable
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/async_yields_async.rs:50:9
|
2020-09-10 10:47:07 -05:00
|
|
|
|
|
|
|
|
LL | let _j = async || {
|
2022-11-28 02:41:31 -06:00
|
|
|
| ________________________-
|
2022-12-27 13:03:59 -06:00
|
|
|
LL | |/ async {
|
2020-09-10 10:47:07 -05:00
|
|
|
LL | || 3
|
|
|
|
LL | || }
|
|
|
|
| ||_________^ awaitable value not awaited
|
2022-11-28 02:41:31 -06:00
|
|
|
LL | | };
|
|
|
|
| |______- outer async construct
|
2020-09-10 10:47:07 -05:00
|
|
|
|
|
|
|
|
help: consider awaiting this value
|
|
|
|
|
|
2021-08-11 09:21:33 -05:00
|
|
|
LL ~ async {
|
|
|
|
LL + 3
|
|
|
|
LL + }.await
|
2020-09-10 10:47:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
error: an async construct yields a type which is itself awaitable
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/async_yields_async.rs:55:9
|
2020-09-10 10:47:07 -05:00
|
|
|
|
|
|
|
|
LL | let _k = async || {
|
|
|
|
| _______________________-
|
|
|
|
LL | | CustomFutureType
|
|
|
|
| | ^^^^^^^^^^^^^^^^
|
|
|
|
| | |
|
|
|
|
| | awaitable value not awaited
|
|
|
|
| | help: consider awaiting this value: `CustomFutureType.await`
|
|
|
|
LL | | };
|
|
|
|
| |_____- outer async construct
|
|
|
|
|
|
|
|
error: an async construct yields a type which is itself awaitable
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/async_yields_async.rs:57:23
|
2020-09-10 10:47:07 -05:00
|
|
|
|
|
|
|
|
LL | let _l = async || CustomFutureType;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| outer async construct
|
|
|
|
| awaitable value not awaited
|
|
|
|
| help: consider awaiting this value: `CustomFutureType.await`
|
|
|
|
|
|
|
|
error: an async construct yields a type which is itself awaitable
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/async_yields_async.rs:63:9
|
2020-09-10 10:47:07 -05:00
|
|
|
|
|
|
|
|
LL | let _m = async || {
|
|
|
|
| _______________________-
|
|
|
|
LL | | println!("I'm bored");
|
|
|
|
LL | | // Some more stuff
|
|
|
|
LL | |
|
|
|
|
LL | | // Finally something to await
|
|
|
|
LL | | CustomFutureType
|
|
|
|
| | ^^^^^^^^^^^^^^^^
|
|
|
|
| | |
|
|
|
|
| | awaitable value not awaited
|
|
|
|
| | help: consider awaiting this value: `CustomFutureType.await`
|
|
|
|
LL | | };
|
|
|
|
| |_____- outer async construct
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|