@@ -162,68 +162,68 @@ 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:19
165+ --> $DIR/incorrect-syntax-suggestions.rs:71:18
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:19
173+ --> $DIR/incorrect-syntax-suggestions.rs:76:18
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:19
181+ --> $DIR/incorrect-syntax-suggestions.rs:81:18
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:19
189+ --> $DIR/incorrect-syntax-suggestions.rs:85:18
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:23
197+ --> $DIR/incorrect-syntax-suggestions.rs:90:22
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:23
205+ --> $DIR/incorrect-syntax-suggestions.rs:97:22
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
213- --> $DIR/incorrect-syntax-suggestions.rs:113:17
213+ --> $DIR/incorrect-syntax-suggestions.rs:113:29
214214 |
215215LL | fn foo() -> Result<(), ()> {
216216 | --- this is not `async`
217217LL | let _ = await!(bar())?;
218- | ^^^^^^^^^^^^ ^ only allowed inside `async` functions and blocks
218+ | ^ only allowed inside `async` functions and blocks
219219
220220error[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
222222 |
223223LL | let foo = || {
224224 | -- this is not `async`
225225LL | let _ = await!(bar())?;
226- | ^^^^^^^^^^^^ ^ only allowed inside `async` functions and blocks
226+ | ^ only allowed inside `async` functions and blocks
227227
228228error: aborting due to 33 previous errors
229229
0 commit comments