@@ -141,39 +141,39 @@ error[E0728]: `await` is only allowed inside `async` functions and blocks
141
141
--> $DIR/incorrect-syntax-suggestions.rs:68:19
142
142
|
143
143
LL | fn foo13() -> Result<(), ()> {
144
- | ----- this is not `async`
144
+ | ----------------------- ----- this is not `async`
145
145
LL | let _ = bar().await();
146
146
| ^^^^^ only allowed inside `async` functions and blocks
147
147
148
148
error[E0728]: `await` is only allowed inside `async` functions and blocks
149
149
--> $DIR/incorrect-syntax-suggestions.rs:73:19
150
150
|
151
151
LL | fn foo14() -> Result<(), ()> {
152
- | ----- this is not `async`
152
+ | ----------------------- ----- this is not `async`
153
153
LL | let _ = bar().await()?;
154
154
| ^^^^^ only allowed inside `async` functions and blocks
155
155
156
156
error[E0728]: `await` is only allowed inside `async` functions and blocks
157
157
--> $DIR/incorrect-syntax-suggestions.rs:78:19
158
158
|
159
159
LL | fn foo15() -> Result<(), ()> {
160
- | ----- this is not `async`
160
+ | ----------------------- ----- this is not `async`
161
161
LL | let _ = bar().await;
162
162
| ^^^^^ only allowed inside `async` functions and blocks
163
163
164
164
error[E0728]: `await` is only allowed inside `async` functions and blocks
165
165
--> $DIR/incorrect-syntax-suggestions.rs:82:19
166
166
|
167
167
LL | fn foo16() -> Result<(), ()> {
168
- | ----- this is not `async`
168
+ | ----------------------- ----- this is not `async`
169
169
LL | let _ = bar().await?;
170
170
| ^^^^^ only allowed inside `async` functions and blocks
171
171
172
172
error[E0728]: `await` is only allowed inside `async` functions and blocks
173
173
--> $DIR/incorrect-syntax-suggestions.rs:87:23
174
174
|
175
175
LL | fn foo() -> Result<(), ()> {
176
- | --- this is not `async`
176
+ | ----------------------- --- this is not `async`
177
177
LL | let _ = bar().await?;
178
178
| ^^^^^ only allowed inside `async` functions and blocks
179
179
0 commit comments