@@ -162,52 +162,52 @@ LL | let _ = (await bar())?;
162162 | ^^^^^^^^^^^ only allowed inside `async` functions and blocks
163163
164164error[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
166166 |
167167LL | fn foo13() -> Result<(), ()> {
168168 | ----- this is not `async`
169169LL | let _ = bar().await();
170- | ^^^^^^ ^^^^^ only allowed inside `async` functions and blocks
170+ | ^^^^^ only allowed inside `async` functions and blocks
171171
172172error[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
174174 |
175175LL | fn foo14() -> Result<(), ()> {
176176 | ----- this is not `async`
177177LL | let _ = bar().await()?;
178- | ^^^^^^ ^^^^^ only allowed inside `async` functions and blocks
178+ | ^^^^^ only allowed inside `async` functions and blocks
179179
180180error[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
182182 |
183183LL | fn foo15() -> Result<(), ()> {
184184 | ----- this is not `async`
185185LL | let _ = bar().await;
186- | ^^^^^^ ^^^^^ only allowed inside `async` functions and blocks
186+ | ^^^^^ only allowed inside `async` functions and blocks
187187
188188error[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
190190 |
191191LL | fn foo16() -> Result<(), ()> {
192192 | ----- this is not `async`
193193LL | let _ = bar().await?;
194- | ^^^^^^ ^^^^^ only allowed inside `async` functions and blocks
194+ | ^^^^^ only allowed inside `async` functions and blocks
195195
196196error[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
198198 |
199199LL | fn foo() -> Result<(), ()> {
200200 | --- this is not `async`
201201LL | let _ = bar().await?;
202- | ^^^^^^ ^^^^^ only allowed inside `async` functions and blocks
202+ | ^^^^^ only allowed inside `async` functions and blocks
203203
204204error[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
206206 |
207207LL | let foo = || {
208208 | -- this is not `async`
209209LL | let _ = bar().await?;
210- | ^^^^^^ ^^^^^ only allowed inside `async` functions and blocks
210+ | ^^^^^ only allowed inside `async` functions and blocks
211211
212212error[E0728]: `await` is only allowed inside `async` functions and blocks
213213 --> $DIR/incorrect-syntax-suggestions.rs:113:17
0 commit comments