@@ -162,52 +162,52 @@ LL | let _ = (await bar())?;
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
- --> $DIR/incorrect-syntax-suggestions.rs:71:13
165
+ --> $DIR/incorrect-syntax-suggestions.rs:71:19
166
166
|
167
167
LL | fn foo13() -> Result<(), ()> {
168
168
| ----- this is not `async`
169
169
LL | let _ = bar().await();
170
- | ^^^^^^ ^^^^^ only allowed inside `async` functions and blocks
170
+ | ^^^^^ only allowed inside `async` functions and blocks
171
171
172
172
error[E0728]: `await` is only allowed inside `async` functions and blocks
173
- --> $DIR/incorrect-syntax-suggestions.rs:76:13
173
+ --> $DIR/incorrect-syntax-suggestions.rs:76:19
174
174
|
175
175
LL | fn foo14() -> Result<(), ()> {
176
176
| ----- this is not `async`
177
177
LL | let _ = bar().await()?;
178
- | ^^^^^^ ^^^^^ only allowed inside `async` functions and blocks
178
+ | ^^^^^ only allowed inside `async` functions and blocks
179
179
180
180
error[E0728]: `await` is only allowed inside `async` functions and blocks
181
- --> $DIR/incorrect-syntax-suggestions.rs:81:13
181
+ --> $DIR/incorrect-syntax-suggestions.rs:81:19
182
182
|
183
183
LL | fn foo15() -> Result<(), ()> {
184
184
| ----- this is not `async`
185
185
LL | let _ = bar().await;
186
- | ^^^^^^ ^^^^^ only allowed inside `async` functions and blocks
186
+ | ^^^^^ only allowed inside `async` functions and blocks
187
187
188
188
error[E0728]: `await` is only allowed inside `async` functions and blocks
189
- --> $DIR/incorrect-syntax-suggestions.rs:85:13
189
+ --> $DIR/incorrect-syntax-suggestions.rs:85:19
190
190
|
191
191
LL | fn foo16() -> Result<(), ()> {
192
192
| ----- this is not `async`
193
193
LL | let _ = bar().await?;
194
- | ^^^^^^ ^^^^^ only allowed inside `async` functions and blocks
194
+ | ^^^^^ only allowed inside `async` functions and blocks
195
195
196
196
error[E0728]: `await` is only allowed inside `async` functions and blocks
197
- --> $DIR/incorrect-syntax-suggestions.rs:90:17
197
+ --> $DIR/incorrect-syntax-suggestions.rs:90:23
198
198
|
199
199
LL | fn foo() -> Result<(), ()> {
200
200
| --- this is not `async`
201
201
LL | let _ = bar().await?;
202
- | ^^^^^^ ^^^^^ only allowed inside `async` functions and blocks
202
+ | ^^^^^ only allowed inside `async` functions and blocks
203
203
204
204
error[E0728]: `await` is only allowed inside `async` functions and blocks
205
- --> $DIR/incorrect-syntax-suggestions.rs:97:17
205
+ --> $DIR/incorrect-syntax-suggestions.rs:97:23
206
206
|
207
207
LL | let foo = || {
208
208
| -- this is not `async`
209
209
LL | let _ = bar().await?;
210
- | ^^^^^^ ^^^^^ only allowed inside `async` functions and blocks
210
+ | ^^^^^ only allowed inside `async` functions and blocks
211
211
212
212
error[E0728]: `await` is only allowed inside `async` functions and blocks
213
213
--> $DIR/incorrect-syntax-suggestions.rs:113:17
0 commit comments