1 error: an async construct yields a type which is itself awaitable
2 --> tests/ui/async_yields_async.rs:39:9
5 | _____________________-
9 | ||_________^ awaitable value not awaited
11 | |______- outer async construct
13 = note: `-D clippy::async-yields-async` implied by `-D warnings`
14 = help: to override `-D warnings` add `#[allow(clippy::async_yields_async)]`
15 help: consider awaiting this value
22 error: an async construct yields a type which is itself awaitable
23 --> tests/ui/async_yields_async.rs:44:9
26 | ____________________-
27 LL | | CustomFutureType
30 | | awaitable value not awaited
31 | | help: consider awaiting this value: `CustomFutureType.await`
33 | |_____- outer async construct
35 error: an async construct yields a type which is itself awaitable
36 --> tests/ui/async_yields_async.rs:50:9
38 LL | let _j = async || {
39 | ________________________-
43 | ||_________^ awaitable value not awaited
45 | |______- outer async construct
47 help: consider awaiting this value
54 error: an async construct yields a type which is itself awaitable
55 --> tests/ui/async_yields_async.rs:55:9
57 LL | let _k = async || {
58 | _______________________-
59 LL | | CustomFutureType
62 | | awaitable value not awaited
63 | | help: consider awaiting this value: `CustomFutureType.await`
65 | |_____- outer async construct
67 error: an async construct yields a type which is itself awaitable
68 --> tests/ui/async_yields_async.rs:57:23
70 LL | let _l = async || CustomFutureType;
73 | outer async construct
74 | awaitable value not awaited
75 | help: consider awaiting this value: `CustomFutureType.await`
77 error: an async construct yields a type which is itself awaitable
78 --> tests/ui/async_yields_async.rs:63:9
80 LL | let _m = async || {
81 | _______________________-
82 LL | | println!("I'm bored");
83 LL | | // Some more stuff
85 LL | | CustomFutureType
88 | | awaitable value not awaited
89 | | help: consider awaiting this value: `CustomFutureType.await`
91 | |_____- outer async construct
93 error: aborting due to 6 previous errors