]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/async_yields_async.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / async_yields_async.stderr
CommitLineData
f20569fa 1error: an async construct yields a type which is itself awaitable
3c0e092e 2 --> $DIR/async_yields_async.rs:39:9
f20569fa
XL
3 |
4LL | let _h = async {
487cf647
FG
5 | _____________________-
6LL | | async {
7 | | _________^
f20569fa
XL
8LL | || 3
9LL | || }
10 | ||_________^ awaitable value not awaited
487cf647
FG
11LL | | };
12 | |______- outer async construct
f20569fa
XL
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
3c0e092e 23 --> $DIR/async_yields_async.rs:44:9
f20569fa
XL
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
3c0e092e 36 --> $DIR/async_yields_async.rs:50:9
f20569fa
XL
37 |
38LL | let _j = async || {
487cf647
FG
39 | ________________________-
40LL | | async {
41 | | _________^
f20569fa
XL
42LL | || 3
43LL | || }
44 | ||_________^ awaitable value not awaited
487cf647
FG
45LL | | };
46 | |______- outer async construct
f20569fa
XL
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
3c0e092e 56 --> $DIR/async_yields_async.rs:55:9
f20569fa
XL
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
3c0e092e 69 --> $DIR/async_yields_async.rs:57:23
f20569fa
XL
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
3c0e092e 79 --> $DIR/async_yields_async.rs:63:9
f20569fa
XL
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