]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/async_yields_async.stderr
bump version to 1.80.1+dfsg1-1~bpo12+pve1
[rustc.git] / src / tools / clippy / tests / ui / async_yields_async.stderr
CommitLineData
f20569fa 1error: an async construct yields a type which is itself awaitable
c620b35d 2 --> tests/ui/async_yields_async.rs:39:9
f20569fa
XL
3 |
4LL | let _h = async {
487cf647 5 | _____________________-
9c376795 6LL | |/ async {
f20569fa
XL
7LL | || 3
8LL | || }
9 | ||_________^ awaitable value not awaited
487cf647
FG
10LL | | };
11 | |______- outer async construct
f20569fa
XL
12 |
13 = note: `-D clippy::async-yields-async` implied by `-D warnings`
781aab86 14 = help: to override `-D warnings` add `#[allow(clippy::async_yields_async)]`
f20569fa
XL
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
c620b35d 23 --> tests/ui/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
c620b35d 36 --> tests/ui/async_yields_async.rs:50:9
f20569fa
XL
37 |
38LL | let _j = async || {
487cf647 39 | ________________________-
9c376795 40LL | |/ async {
f20569fa
XL
41LL | || 3
42LL | || }
43 | ||_________^ awaitable value not awaited
487cf647
FG
44LL | | };
45 | |______- outer async construct
f20569fa
XL
46 |
47help: consider awaiting this value
48 |
94222f64
XL
49LL ~ async {
50LL + 3
51LL + }.await
f20569fa
XL
52 |
53
54error: an async construct yields a type which is itself awaitable
c620b35d 55 --> tests/ui/async_yields_async.rs:55:9
f20569fa
XL
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
c620b35d 68 --> tests/ui/async_yields_async.rs:57:23
f20569fa
XL
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
c620b35d 78 --> tests/ui/async_yields_async.rs:63:9
f20569fa
XL
79 |
80LL | let _m = async || {
81 | _______________________-
82LL | | println!("I'm bored");
83LL | | // Some more stuff
e8be2606 84... |
f20569fa
XL
85LL | | CustomFutureType
86 | | ^^^^^^^^^^^^^^^^
87 | | |
88 | | awaitable value not awaited
89 | | help: consider awaiting this value: `CustomFutureType.await`
90LL | | };
91 | |_____- outer async construct
92
93error: aborting due to 6 previous errors
94