@@ -6,8 +6,9 @@ LL | let _ = await bar();
66 |
77help: `await` is a postfix operation
88 |
9- LL | let _ = bar().await;
10- | ~~~~~~~~~~~
9+ LL - let _ = await bar();
10+ LL + let _ = bar().await;
11+ |
1112
1213error: incorrect use of `await`
1314 --> $DIR/incorrect-syntax-suggestions.rs:12:13
@@ -17,8 +18,9 @@ LL | let _ = await? bar();
1718 |
1819help: `await` is a postfix operation
1920 |
20- LL | let _ = bar().await?;
21- | ~~~~~~~~~~~~
21+ LL - let _ = await? bar();
22+ LL + let _ = bar().await?;
23+ |
2224
2325error: incorrect use of `await`
2426 --> $DIR/incorrect-syntax-suggestions.rs:16:13
@@ -28,8 +30,9 @@ LL | let _ = await bar()?;
2830 |
2931help: `await` is a postfix operation
3032 |
31- LL | let _ = bar()?.await;
32- | ~~~~~~~~~~~~
33+ LL - let _ = await bar()?;
34+ LL + let _ = bar()?.await;
35+ |
3336
3437error: incorrect use of `await`
3538 --> $DIR/incorrect-syntax-suggestions.rs:20:13
@@ -39,8 +42,9 @@ LL | let _ = await { bar() };
3942 |
4043help: `await` is a postfix operation
4144 |
42- LL | let _ = { bar() }.await;
43- | ~~~~~~~~~~~~~~~
45+ LL - let _ = await { bar() };
46+ LL + let _ = { bar() }.await;
47+ |
4448
4549error: incorrect use of `await`
4650 --> $DIR/incorrect-syntax-suggestions.rs:24:13
@@ -50,8 +54,9 @@ LL | let _ = await(bar());
5054 |
5155help: `await` is a postfix operation
5256 |
53- LL | let _ = (bar()).await;
54- | ~~~~~~~~~~~~~
57+ LL - let _ = await(bar());
58+ LL + let _ = (bar()).await;
59+ |
5560
5661error: incorrect use of `await`
5762 --> $DIR/incorrect-syntax-suggestions.rs:28:13
@@ -61,8 +66,9 @@ LL | let _ = await { bar() }?;
6166 |
6267help: `await` is a postfix operation
6368 |
64- LL | let _ = { bar() }.await?;
65- | ~~~~~~~~~~~~~~~
69+ LL - let _ = await { bar() }?;
70+ LL + let _ = { bar() }.await?;
71+ |
6672
6773error: incorrect use of `await`
6874 --> $DIR/incorrect-syntax-suggestions.rs:32:14
@@ -72,8 +78,9 @@ LL | let _ = (await bar())?;
7278 |
7379help: `await` is a postfix operation
7480 |
75- LL | let _ = (bar().await)?;
76- | ~~~~~~~~~~~
81+ LL - let _ = (await bar())?;
82+ LL + let _ = (bar().await)?;
83+ |
7784
7885error: incorrect use of `await`
7986 --> $DIR/incorrect-syntax-suggestions.rs:36:24
@@ -107,8 +114,9 @@ LL | let _ = await bar();
107114 |
108115help: `await` is a postfix operation
109116 |
110- LL | let _ = bar().await;
111- | ~~~~~~~~~~~
117+ LL - let _ = await bar();
118+ LL + let _ = bar().await;
119+ |
112120
113121error: incorrect use of `await`
114122 --> $DIR/incorrect-syntax-suggestions.rs:56:13
@@ -118,8 +126,9 @@ LL | let _ = await? bar();
118126 |
119127help: `await` is a postfix operation
120128 |
121- LL | let _ = bar().await?;
122- | ~~~~~~~~~~~~
129+ LL - let _ = await? bar();
130+ LL + let _ = bar().await?;
131+ |
123132
124133error: incorrect use of `await`
125134 --> $DIR/incorrect-syntax-suggestions.rs:60:13
@@ -129,8 +138,9 @@ LL | let _ = await bar()?;
129138 |
130139help: `await` is a postfix operation
131140 |
132- LL | let _ = bar()?.await;
133- | ~~~~~~~~~~~~
141+ LL - let _ = await bar()?;
142+ LL + let _ = bar()?.await;
143+ |
134144
135145error: incorrect use of `await`
136146 --> $DIR/incorrect-syntax-suggestions.rs:64:14
@@ -140,8 +150,9 @@ LL | let _ = (await bar())?;
140150 |
141151help: `await` is a postfix operation
142152 |
143- LL | let _ = (bar().await)?;
144- | ~~~~~~~~~~~
153+ LL - let _ = (await bar())?;
154+ LL + let _ = (bar().await)?;
155+ |
145156
146157error: incorrect use of `await`
147158 --> $DIR/incorrect-syntax-suggestions.rs:68:24
@@ -175,8 +186,9 @@ LL | let _ = await!(bar());
175186 |
176187help: `await` is a postfix operation
177188 |
178- LL | let _ = bar().await;
179- | ~~~~~~~~~~~
189+ LL - let _ = await!(bar());
190+ LL + let _ = bar().await);
191+ |
180192
181193error: incorrect use of `await`
182194 --> $DIR/incorrect-syntax-suggestions.rs:105:13
@@ -186,8 +198,9 @@ LL | let _ = await!(bar())?;
186198 |
187199help: `await` is a postfix operation
188200 |
189- LL | let _ = bar().await?;
190- | ~~~~~~~~~~~
201+ LL - let _ = await!(bar())?;
202+ LL + let _ = bar().await)?;
203+ |
191204
192205error: incorrect use of `await`
193206 --> $DIR/incorrect-syntax-suggestions.rs:110:17
@@ -197,8 +210,9 @@ LL | let _ = await!(bar())?;
197210 |
198211help: `await` is a postfix operation
199212 |
200- LL | let _ = bar().await?;
201- | ~~~~~~~~~~~
213+ LL - let _ = await!(bar())?;
214+ LL + let _ = bar().await)?;
215+ |
202216
203217error: incorrect use of `await`
204218 --> $DIR/incorrect-syntax-suggestions.rs:117:17
@@ -208,8 +222,9 @@ LL | let _ = await!(bar())?;
208222 |
209223help: `await` is a postfix operation
210224 |
211- LL | let _ = bar().await?;
212- | ~~~~~~~~~~~
225+ LL - let _ = await!(bar())?;
226+ LL + let _ = bar().await)?;
227+ |
213228
214229error: expected expression, found `=>`
215230 --> $DIR/incorrect-syntax-suggestions.rs:124:25
@@ -227,8 +242,9 @@ LL | match await { await => () }
227242 |
228243help: `await` is a postfix operation
229244 |
230- LL | match { await => () }.await
231- | ~~~~~~~~~~~~~~~~~~~~~
245+ LL - match await { await => () }
246+ LL + match { await => () }.await
247+ |
232248
233249error: expected one of `.`, `?`, `{`, or an operator, found `}`
234250 --> $DIR/incorrect-syntax-suggestions.rs:127:1
0 commit comments