summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/async_yields_async.stderr
blob: 92ba3592967803c41235fd84b4a418528a3bf376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
error: an async construct yields a type which is itself awaitable
  --> $DIR/async_yields_async.rs:39:9
   |
LL |        let _h = async {
   |  _____________________-
LL | |          async {
   | | _________^
LL | ||             3
LL | ||         }
   | ||_________^ awaitable value not awaited
LL | |      };
   | |______- outer async construct
   |
   = note: `-D clippy::async-yields-async` implied by `-D warnings`
help: consider awaiting this value
   |
LL ~         async {
LL +             3
LL +         }.await
   |

error: an async construct yields a type which is itself awaitable
  --> $DIR/async_yields_async.rs:44:9
   |
LL |       let _i = async {
   |  ____________________-
LL | |         CustomFutureType
   | |         ^^^^^^^^^^^^^^^^
   | |         |
   | |         awaitable value not awaited
   | |         help: consider awaiting this value: `CustomFutureType.await`
LL | |     };
   | |_____- outer async construct

error: an async construct yields a type which is itself awaitable
  --> $DIR/async_yields_async.rs:50:9
   |
LL |        let _j = async || {
   |  ________________________-
LL | |          async {
   | | _________^
LL | ||             3
LL | ||         }
   | ||_________^ awaitable value not awaited
LL | |      };
   | |______- outer async construct
   |
help: consider awaiting this value
   |
LL ~         async {
LL +             3
LL +         }.await
   |

error: an async construct yields a type which is itself awaitable
  --> $DIR/async_yields_async.rs:55:9
   |
LL |       let _k = async || {
   |  _______________________-
LL | |         CustomFutureType
   | |         ^^^^^^^^^^^^^^^^
   | |         |
   | |         awaitable value not awaited
   | |         help: consider awaiting this value: `CustomFutureType.await`
LL | |     };
   | |_____- outer async construct

error: an async construct yields a type which is itself awaitable
  --> $DIR/async_yields_async.rs:57:23
   |
LL |     let _l = async || CustomFutureType;
   |                       ^^^^^^^^^^^^^^^^
   |                       |
   |                       outer async construct
   |                       awaitable value not awaited
   |                       help: consider awaiting this value: `CustomFutureType.await`

error: an async construct yields a type which is itself awaitable
  --> $DIR/async_yields_async.rs:63:9
   |
LL |       let _m = async || {
   |  _______________________-
LL | |         println!("I'm bored");
LL | |         // Some more stuff
LL | |
LL | |         // Finally something to await
LL | |         CustomFutureType
   | |         ^^^^^^^^^^^^^^^^
   | |         |
   | |         awaitable value not awaited
   | |         help: consider awaiting this value: `CustomFutureType.await`
LL | |     };
   | |_____- outer async construct

error: aborting due to 6 previous errors