@@ -6,11 +6,6 @@ LL | take_u32(x)
6
6
| |
7
7
| arguments to this function are incorrect
8
8
|
9
- note: while checking the return type of the `async fn`
10
- --> $DIR/suggest-missing-await.rs:5:24
11
- |
12
- LL | async fn make_u32() -> u32 {
13
- | ^^^ checked the `Output` of this `async fn`, found opaque type
14
9
= note: expected type `u32`
15
10
found opaque type `impl Future<Output = u32>`
16
11
note: function defined here
@@ -29,11 +24,6 @@ error[E0308]: mismatched types
29
24
LL | dummy()
30
25
| ^^^^^^^ expected `()`, found opaque type
31
26
|
32
- note: while checking the return type of the `async fn`
33
- --> $DIR/suggest-missing-await.rs:18:18
34
- |
35
- LL | async fn dummy() {}
36
- | ^ checked the `Output` of this `async fn`, found opaque type
37
27
= note: expected unit type `()`
38
28
found opaque type `impl Future<Output = ()>`
39
29
help: consider `await`ing on the `Future`
@@ -60,11 +50,6 @@ LL | |
60
50
LL | | };
61
51
| |_____- `if` and `else` have incompatible types
62
52
|
63
- note: while checking the return type of the `async fn`
64
- --> $DIR/suggest-missing-await.rs:18:18
65
- |
66
- LL | async fn dummy() {}
67
- | ^ checked the `Output` of this `async fn`, expected opaque type
68
53
= note: expected opaque type `impl Future<Output = ()>`
69
54
found unit type `()`
70
55
help: consider `await`ing on the `Future`
@@ -87,11 +72,6 @@ LL | |
87
72
LL | | };
88
73
| |_____- `match` arms have incompatible types
89
74
|
90
- note: while checking the return type of the `async fn`
91
- --> $DIR/suggest-missing-await.rs:18:18
92
- |
93
- LL | async fn dummy() {}
94
- | ^ checked the `Output` of this `async fn`, expected opaque type
95
75
= note: expected opaque type `impl Future<Output = ()>`
96
76
found unit type `()`
97
77
help: consider `await`ing on the `Future`
@@ -108,11 +88,6 @@ LL | let _x = match dummy() {
108
88
LL | () => {}
109
89
| ^^ expected opaque type, found `()`
110
90
|
111
- note: while checking the return type of the `async fn`
112
- --> $DIR/suggest-missing-await.rs:18:18
113
- |
114
- LL | async fn dummy() {}
115
- | ^ checked the `Output` of this `async fn`, expected opaque type
116
91
= note: expected opaque type `impl Future<Output = ()>`
117
92
found unit type `()`
118
93
help: consider `await`ing on the `Future`
@@ -129,11 +104,6 @@ LL | match dummy_result() {
129
104
LL | Ok(_) => {}
130
105
| ^^^^^ expected opaque type, found enum `Result`
131
106
|
132
- note: while checking the return type of the `async fn`
133
- --> $DIR/suggest-missing-await.rs:57:28
134
- |
135
- LL | async fn dummy_result() -> Result<(), ()> {
136
- | ^^^^^^^^^^^^^^ checked the `Output` of this `async fn`, expected opaque type
137
107
= note: expected opaque type `impl Future<Output = Result<(), ()>>`
138
108
found enum `Result<_, _>`
139
109
help: consider `await`ing on the `Future`
@@ -150,11 +120,6 @@ LL | match dummy_result() {
150
120
LL | Err(_) => {}
151
121
| ^^^^^^ expected opaque type, found enum `Result`
152
122
|
153
- note: while checking the return type of the `async fn`
154
- --> $DIR/suggest-missing-await.rs:57:28
155
- |
156
- LL | async fn dummy_result() -> Result<(), ()> {
157
- | ^^^^^^^^^^^^^^ checked the `Output` of this `async fn`, expected opaque type
158
123
= note: expected opaque type `impl Future<Output = Result<(), ()>>`
159
124
found enum `Result<_, _>`
160
125
help: consider `await`ing on the `Future`
0 commit comments