]>
Commit | Line | Data |
---|---|---|
f20569fa | 1 | error: an async construct yields a type which is itself awaitable |
c620b35d | 2 | --> tests/ui/async_yields_async.rs:39:9 |
f20569fa XL |
3 | | |
4 | LL | let _h = async { | |
487cf647 | 5 | | _____________________- |
9c376795 | 6 | LL | |/ async { |
f20569fa XL |
7 | LL | || 3 |
8 | LL | || } | |
9 | | ||_________^ awaitable value not awaited | |
487cf647 FG |
10 | LL | | }; |
11 | | |______- outer async construct | |
f20569fa XL |
12 | | |
13 | = note: `-D clippy::async-yields-async` implied by `-D warnings` | |
781aab86 | 14 | = help: to override `-D warnings` add `#[allow(clippy::async_yields_async)]` |
f20569fa XL |
15 | help: consider awaiting this value |
16 | | | |
94222f64 XL |
17 | LL ~ async { |
18 | LL + 3 | |
19 | LL + }.await | |
f20569fa XL |
20 | | |
21 | ||
22 | error: an async construct yields a type which is itself awaitable | |
c620b35d | 23 | --> tests/ui/async_yields_async.rs:44:9 |
f20569fa XL |
24 | | |
25 | LL | let _i = async { | |
26 | | ____________________- | |
27 | LL | | CustomFutureType | |
28 | | | ^^^^^^^^^^^^^^^^ | |
29 | | | | | |
30 | | | awaitable value not awaited | |
31 | | | help: consider awaiting this value: `CustomFutureType.await` | |
32 | LL | | }; | |
33 | | |_____- outer async construct | |
34 | ||
35 | error: an async construct yields a type which is itself awaitable | |
c620b35d | 36 | --> tests/ui/async_yields_async.rs:50:9 |
f20569fa XL |
37 | | |
38 | LL | let _j = async || { | |
487cf647 | 39 | | ________________________- |
9c376795 | 40 | LL | |/ async { |
f20569fa XL |
41 | LL | || 3 |
42 | LL | || } | |
43 | | ||_________^ awaitable value not awaited | |
487cf647 FG |
44 | LL | | }; |
45 | | |______- outer async construct | |
f20569fa XL |
46 | | |
47 | help: consider awaiting this value | |
48 | | | |
94222f64 XL |
49 | LL ~ async { |
50 | LL + 3 | |
51 | LL + }.await | |
f20569fa XL |
52 | | |
53 | ||
54 | error: an async construct yields a type which is itself awaitable | |
c620b35d | 55 | --> tests/ui/async_yields_async.rs:55:9 |
f20569fa XL |
56 | | |
57 | LL | let _k = async || { | |
58 | | _______________________- | |
59 | LL | | CustomFutureType | |
60 | | | ^^^^^^^^^^^^^^^^ | |
61 | | | | | |
62 | | | awaitable value not awaited | |
63 | | | help: consider awaiting this value: `CustomFutureType.await` | |
64 | LL | | }; | |
65 | | |_____- outer async construct | |
66 | ||
67 | error: an async construct yields a type which is itself awaitable | |
c620b35d | 68 | --> tests/ui/async_yields_async.rs:57:23 |
f20569fa XL |
69 | | |
70 | LL | let _l = async || CustomFutureType; | |
71 | | ^^^^^^^^^^^^^^^^ | |
72 | | | | |
73 | | outer async construct | |
74 | | awaitable value not awaited | |
75 | | help: consider awaiting this value: `CustomFutureType.await` | |
76 | ||
77 | error: an async construct yields a type which is itself awaitable | |
c620b35d | 78 | --> tests/ui/async_yields_async.rs:63:9 |
f20569fa XL |
79 | | |
80 | LL | let _m = async || { | |
81 | | _______________________- | |
82 | LL | | println!("I'm bored"); | |
83 | LL | | // Some more stuff | |
e8be2606 | 84 | ... | |
f20569fa XL |
85 | LL | | CustomFutureType |
86 | | | ^^^^^^^^^^^^^^^^ | |
87 | | | | | |
88 | | | awaitable value not awaited | |
89 | | | help: consider awaiting this value: `CustomFutureType.await` | |
90 | LL | | }; | |
91 | | |_____- outer async construct | |
92 | ||
93 | error: aborting due to 6 previous errors | |
94 |