@@ -4,6 +4,8 @@ error: an async construct yields a type which is itself awaitable
4
4
LL | let _h = async {
5
5
| _____________________-
6
6
LL | |/ async {
7
+ LL | ||
8
+ LL | ||
7
9
LL | || 3
8
10
LL | || }
9
11
| ||_________^ awaitable value not awaited
@@ -14,12 +16,14 @@ LL | | };
14
16
help: consider awaiting this value
15
17
|
16
18
LL ~ async {
19
+ LL +
20
+ LL +
17
21
LL + 3
18
22
LL + }.await
19
23
|
20
24
21
25
error: an async construct yields a type which is itself awaitable
22
- --> $DIR/async_yields_async.rs:44 :9
26
+ --> $DIR/async_yields_async.rs:46 :9
23
27
|
24
28
LL | let _i = async {
25
29
| ____________________-
@@ -28,15 +32,17 @@ LL | | CustomFutureType
28
32
| | |
29
33
| | awaitable value not awaited
30
34
| | help: consider awaiting this value: `CustomFutureType.await`
35
+ LL | |
31
36
LL | | };
32
37
| |_____- outer async construct
33
38
34
39
error: an async construct yields a type which is itself awaitable
35
- --> $DIR/async_yields_async.rs:50 :9
40
+ --> $DIR/async_yields_async.rs:53 :9
36
41
|
37
42
LL | let _j = async || {
38
43
| ________________________-
39
44
LL | |/ async {
45
+ LL | ||
40
46
LL | || 3
41
47
LL | || }
42
48
| ||_________^ awaitable value not awaited
@@ -46,12 +52,13 @@ LL | | };
46
52
help: consider awaiting this value
47
53
|
48
54
LL ~ async {
55
+ LL +
49
56
LL + 3
50
57
LL + }.await
51
58
|
52
59
53
60
error: an async construct yields a type which is itself awaitable
54
- --> $DIR/async_yields_async.rs:55 :9
61
+ --> $DIR/async_yields_async.rs:59 :9
55
62
|
56
63
LL | let _k = async || {
57
64
| _______________________-
@@ -60,11 +67,12 @@ LL | | CustomFutureType
60
67
| | |
61
68
| | awaitable value not awaited
62
69
| | help: consider awaiting this value: `CustomFutureType.await`
70
+ LL | |
63
71
LL | | };
64
72
| |_____- outer async construct
65
73
66
74
error: an async construct yields a type which is itself awaitable
67
- --> $DIR/async_yields_async.rs:57 :23
75
+ --> $DIR/async_yields_async.rs:62 :23
68
76
|
69
77
LL | let _l = async || CustomFutureType;
70
78
| ^^^^^^^^^^^^^^^^
@@ -74,7 +82,7 @@ LL | let _l = async || CustomFutureType;
74
82
| help: consider awaiting this value: `CustomFutureType.await`
75
83
76
84
error: an async construct yields a type which is itself awaitable
77
- --> $DIR/async_yields_async.rs:63 :9
85
+ --> $DIR/async_yields_async.rs:69 :9
78
86
|
79
87
LL | let _m = async || {
80
88
| _______________________-
@@ -87,6 +95,7 @@ LL | | CustomFutureType
87
95
| | |
88
96
| | awaitable value not awaited
89
97
| | help: consider awaiting this value: `CustomFutureType.await`
98
+ LL | |
90
99
LL | | };
91
100
| |_____- outer async construct
92
101
0 commit comments