]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/async_yields_async.stderr
991ad7ae0ae2f65b184e28eccae942006350c390
[rustc.git] / src / tools / clippy / tests / ui / async_yields_async.stderr
1 error: an async construct yields a type which is itself awaitable
2 --> tests/ui/async_yields_async.rs:39:9
3 |
4 LL | let _h = async {
5 | _____________________-
6 LL | |/ async {
7 LL | || 3
8 LL | || }
9 | ||_________^ awaitable value not awaited
10 LL | | };
11 | |______- outer async construct
12 |
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
16 |
17 LL ~ async {
18 LL + 3
19 LL + }.await
20 |
21
22 error: an async construct yields a type which is itself awaitable
23 --> tests/ui/async_yields_async.rs:44:9
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
36 --> tests/ui/async_yields_async.rs:50:9
37 |
38 LL | let _j = async || {
39 | ________________________-
40 LL | |/ async {
41 LL | || 3
42 LL | || }
43 | ||_________^ awaitable value not awaited
44 LL | | };
45 | |______- outer async construct
46 |
47 help: consider awaiting this value
48 |
49 LL ~ async {
50 LL + 3
51 LL + }.await
52 |
53
54 error: an async construct yields a type which is itself awaitable
55 --> tests/ui/async_yields_async.rs:55:9
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
68 --> tests/ui/async_yields_async.rs:57:23
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
78 --> tests/ui/async_yields_async.rs:63:9
79 |
80 LL | let _m = async || {
81 | _______________________-
82 LL | | println!("I'm bored");
83 LL | | // Some more stuff
84 ... |
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