]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/async_yields_async.stderr
Rollup merge of #105801 - zertosh:path_mut_os_str_doc_test, r=dtolnay
[rust.git] / src / tools / clippy / tests / ui / async_yields_async.stderr
1 error: an async construct yields a type which is itself awaitable
2   --> $DIR/async_yields_async.rs:39:9
3    |
4 LL |        let _h = async {
5    |  _____________________-
6 LL | |          async {
7    | | _________^
8 LL | ||             3
9 LL | ||         }
10    | ||_________^ awaitable value not awaited
11 LL | |      };
12    | |______- outer async construct
13    |
14    = note: `-D clippy::async-yields-async` implied by `-D warnings`
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   --> $DIR/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   --> $DIR/async_yields_async.rs:50:9
37    |
38 LL |        let _j = async || {
39    |  ________________________-
40 LL | |          async {
41    | | _________^
42 LL | ||             3
43 LL | ||         }
44    | ||_________^ awaitable value not awaited
45 LL | |      };
46    | |______- outer async construct
47    |
48 help: consider awaiting this value
49    |
50 LL ~         async {
51 LL +             3
52 LL +         }.await
53    |
54
55 error: an async construct yields a type which is itself awaitable
56   --> $DIR/async_yields_async.rs:55:9
57    |
58 LL |       let _k = async || {
59    |  _______________________-
60 LL | |         CustomFutureType
61    | |         ^^^^^^^^^^^^^^^^
62    | |         |
63    | |         awaitable value not awaited
64    | |         help: consider awaiting this value: `CustomFutureType.await`
65 LL | |     };
66    | |_____- outer async construct
67
68 error: an async construct yields a type which is itself awaitable
69   --> $DIR/async_yields_async.rs:57:23
70    |
71 LL |     let _l = async || CustomFutureType;
72    |                       ^^^^^^^^^^^^^^^^
73    |                       |
74    |                       outer async construct
75    |                       awaitable value not awaited
76    |                       help: consider awaiting this value: `CustomFutureType.await`
77
78 error: an async construct yields a type which is itself awaitable
79   --> $DIR/async_yields_async.rs:63:9
80    |
81 LL |       let _m = async || {
82    |  _______________________-
83 LL | |         println!("I'm bored");
84 LL | |         // Some more stuff
85 LL | |
86 LL | |         // Finally something to await
87 LL | |         CustomFutureType
88    | |         ^^^^^^^^^^^^^^^^
89    | |         |
90    | |         awaitable value not awaited
91    | |         help: consider awaiting this value: `CustomFutureType.await`
92 LL | |     };
93    | |_____- outer async construct
94
95 error: aborting due to 6 previous errors
96