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