@@ -141,39 +141,39 @@ error[E0728]: `await` is only allowed inside `async` functions and blocks
141141 --> $DIR/incorrect-syntax-suggestions.rs:68:19
142142 |
143143LL | fn foo13() -> Result<(), ()> {
144- | ----- this is not `async`
144+ | ----------------------- ----- this is not `async`
145145LL | let _ = bar().await();
146146 | ^^^^^ only allowed inside `async` functions and blocks
147147
148148error[E0728]: `await` is only allowed inside `async` functions and blocks
149149 --> $DIR/incorrect-syntax-suggestions.rs:73:19
150150 |
151151LL | fn foo14() -> Result<(), ()> {
152- | ----- this is not `async`
152+ | ----------------------- ----- this is not `async`
153153LL | let _ = bar().await()?;
154154 | ^^^^^ only allowed inside `async` functions and blocks
155155
156156error[E0728]: `await` is only allowed inside `async` functions and blocks
157157 --> $DIR/incorrect-syntax-suggestions.rs:78:19
158158 |
159159LL | fn foo15() -> Result<(), ()> {
160- | ----- this is not `async`
160+ | ----------------------- ----- this is not `async`
161161LL | let _ = bar().await;
162162 | ^^^^^ only allowed inside `async` functions and blocks
163163
164164error[E0728]: `await` is only allowed inside `async` functions and blocks
165165 --> $DIR/incorrect-syntax-suggestions.rs:82:19
166166 |
167167LL | fn foo16() -> Result<(), ()> {
168- | ----- this is not `async`
168+ | ----------------------- ----- this is not `async`
169169LL | let _ = bar().await?;
170170 | ^^^^^ only allowed inside `async` functions and blocks
171171
172172error[E0728]: `await` is only allowed inside `async` functions and blocks
173173 --> $DIR/incorrect-syntax-suggestions.rs:87:23
174174 |
175175LL | fn foo() -> Result<(), ()> {
176- | --- this is not `async`
176+ | ----------------------- --- this is not `async`
177177LL | let _ = bar().await?;
178178 | ^^^^^ only allowed inside `async` functions and blocks
179179
0 commit comments