@@ -162,68 +162,68 @@ 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:19
165
+ --> $DIR/incorrect-syntax-suggestions.rs:71:18
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:19
173
+ --> $DIR/incorrect-syntax-suggestions.rs:76:18
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:19
181
+ --> $DIR/incorrect-syntax-suggestions.rs:81:18
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:19
189
+ --> $DIR/incorrect-syntax-suggestions.rs:85:18
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:23
197
+ --> $DIR/incorrect-syntax-suggestions.rs:90:22
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:23
205
+ --> $DIR/incorrect-syntax-suggestions.rs:97:22
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
- --> $DIR/incorrect-syntax-suggestions.rs:113:17
213
+ --> $DIR/incorrect-syntax-suggestions.rs:113:29
214
214
|
215
215
LL | fn foo() -> Result<(), ()> {
216
216
| --- this is not `async`
217
217
LL | let _ = await!(bar())?;
218
- | ^^^^^^^^^^^^ ^ only allowed inside `async` functions and blocks
218
+ | ^ only allowed inside `async` functions and blocks
219
219
220
220
error[E0728]: `await` is only allowed inside `async` functions and blocks
221
- --> $DIR/incorrect-syntax-suggestions.rs:121:17
221
+ --> $DIR/incorrect-syntax-suggestions.rs:121:29
222
222
|
223
223
LL | let foo = || {
224
224
| -- this is not `async`
225
225
LL | let _ = await!(bar())?;
226
- | ^^^^^^^^^^^^ ^ only allowed inside `async` functions and blocks
226
+ | ^ only allowed inside `async` functions and blocks
227
227
228
228
error: aborting due to 33 previous errors
229
229
0 commit comments