fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.8 KiB95 linesraw
1error: an async construct yields a type which is itself awaitable
2  --> $DIR/async_yields_async.rs:39:9
3   |
4LL |        let _h = async {
5   |  _____________________-
6LL | |/         async {
7LL | ||             3
8LL | ||         }
9   | ||_________^ awaitable value not awaited
10LL | |      };
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)]`
15help: consider awaiting this value
16   |
17LL ~         async {
18LL +             3
19LL +         }.await
20   |
21
22error: an async construct yields a type which is itself awaitable
23  --> $DIR/async_yields_async.rs:44: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:50:9
37   |
38LL |        let _j = async || {
39   |  ________________________-
40LL | |/         async {
41LL | ||             3
42LL | ||         }
43   | ||_________^ awaitable value not awaited
44LL | |      };
45   | |______- outer async construct
46   |
47help: consider awaiting this value
48   |
49LL ~         async {
50LL +             3
51LL +         }.await
52   |
53
54error: an async construct yields a type which is itself awaitable
55  --> $DIR/async_yields_async.rs:55:9
56   |
57LL |       let _k = async || {
58   |  _______________________-
59LL | |         CustomFutureType
60   | |         ^^^^^^^^^^^^^^^^
61   | |         |
62   | |         awaitable value not awaited
63   | |         help: consider awaiting this value: `CustomFutureType.await`
64LL | |     };
65   | |_____- outer async construct
66
67error: an async construct yields a type which is itself awaitable
68  --> $DIR/async_yields_async.rs:57:23
69   |
70LL |     let _l = async || CustomFutureType;
71   |                       ^^^^^^^^^^^^^^^^
72   |                       |
73   |                       outer async construct
74   |                       awaitable value not awaited
75   |                       help: consider awaiting this value: `CustomFutureType.await`
76
77error: an async construct yields a type which is itself awaitable
78  --> $DIR/async_yields_async.rs:63:9
79   |
80LL |       let _m = async || {
81   |  _______________________-
82LL | |         println!("I'm bored");
83LL | |         // Some more stuff
84LL | |
85LL | |         // Finally something to await
86LL | |         CustomFutureType
87   | |         ^^^^^^^^^^^^^^^^
88   | |         |
89   | |         awaitable value not awaited
90   | |         help: consider awaiting this value: `CustomFutureType.await`
91LL | |     };
92   | |_____- outer async construct
93
94error: aborting due to 6 previous errors
95