@@ -6,8 +6,9 @@ LL | let _ = await bar();
6
6
|
7
7
help: `await` is a postfix operation
8
8
|
9
- LL | let _ = bar().await;
10
- | ~~~~~~~~~~~
9
+ LL - let _ = await bar();
10
+ LL + let _ = bar().await;
11
+ |
11
12
12
13
error: incorrect use of `await`
13
14
--> $DIR/incorrect-syntax-suggestions.rs:12:13
@@ -17,8 +18,9 @@ LL | let _ = await? bar();
17
18
|
18
19
help: `await` is a postfix operation
19
20
|
20
- LL | let _ = bar().await?;
21
- | ~~~~~~~~~~~~
21
+ LL - let _ = await? bar();
22
+ LL + let _ = bar().await?;
23
+ |
22
24
23
25
error: incorrect use of `await`
24
26
--> $DIR/incorrect-syntax-suggestions.rs:16:13
@@ -28,8 +30,9 @@ LL | let _ = await bar()?;
28
30
|
29
31
help: `await` is a postfix operation
30
32
|
31
- LL | let _ = bar()?.await;
32
- | ~~~~~~~~~~~~
33
+ LL - let _ = await bar()?;
34
+ LL + let _ = bar()?.await;
35
+ |
33
36
34
37
error: incorrect use of `await`
35
38
--> $DIR/incorrect-syntax-suggestions.rs:20:13
@@ -39,8 +42,9 @@ LL | let _ = await { bar() };
39
42
|
40
43
help: `await` is a postfix operation
41
44
|
42
- LL | let _ = { bar() }.await;
43
- | ~~~~~~~~~~~~~~~
45
+ LL - let _ = await { bar() };
46
+ LL + let _ = { bar() }.await;
47
+ |
44
48
45
49
error: incorrect use of `await`
46
50
--> $DIR/incorrect-syntax-suggestions.rs:24:13
@@ -50,8 +54,9 @@ LL | let _ = await(bar());
50
54
|
51
55
help: `await` is a postfix operation
52
56
|
53
- LL | let _ = (bar()).await;
54
- | ~~~~~~~~~~~~~
57
+ LL - let _ = await(bar());
58
+ LL + let _ = (bar()).await;
59
+ |
55
60
56
61
error: incorrect use of `await`
57
62
--> $DIR/incorrect-syntax-suggestions.rs:28:13
@@ -61,8 +66,9 @@ LL | let _ = await { bar() }?;
61
66
|
62
67
help: `await` is a postfix operation
63
68
|
64
- LL | let _ = { bar() }.await?;
65
- | ~~~~~~~~~~~~~~~
69
+ LL - let _ = await { bar() }?;
70
+ LL + let _ = { bar() }.await?;
71
+ |
66
72
67
73
error: incorrect use of `await`
68
74
--> $DIR/incorrect-syntax-suggestions.rs:32:14
@@ -72,8 +78,9 @@ LL | let _ = (await bar())?;
72
78
|
73
79
help: `await` is a postfix operation
74
80
|
75
- LL | let _ = (bar().await)?;
76
- | ~~~~~~~~~~~
81
+ LL - let _ = (await bar())?;
82
+ LL + let _ = (bar().await)?;
83
+ |
77
84
78
85
error: incorrect use of `await`
79
86
--> $DIR/incorrect-syntax-suggestions.rs:36:24
@@ -107,8 +114,9 @@ LL | let _ = await bar();
107
114
|
108
115
help: `await` is a postfix operation
109
116
|
110
- LL | let _ = bar().await;
111
- | ~~~~~~~~~~~
117
+ LL - let _ = await bar();
118
+ LL + let _ = bar().await;
119
+ |
112
120
113
121
error: incorrect use of `await`
114
122
--> $DIR/incorrect-syntax-suggestions.rs:56:13
@@ -118,8 +126,9 @@ LL | let _ = await? bar();
118
126
|
119
127
help: `await` is a postfix operation
120
128
|
121
- LL | let _ = bar().await?;
122
- | ~~~~~~~~~~~~
129
+ LL - let _ = await? bar();
130
+ LL + let _ = bar().await?;
131
+ |
123
132
124
133
error: incorrect use of `await`
125
134
--> $DIR/incorrect-syntax-suggestions.rs:60:13
@@ -129,8 +138,9 @@ LL | let _ = await bar()?;
129
138
|
130
139
help: `await` is a postfix operation
131
140
|
132
- LL | let _ = bar()?.await;
133
- | ~~~~~~~~~~~~
141
+ LL - let _ = await bar()?;
142
+ LL + let _ = bar()?.await;
143
+ |
134
144
135
145
error: incorrect use of `await`
136
146
--> $DIR/incorrect-syntax-suggestions.rs:64:14
@@ -140,8 +150,9 @@ LL | let _ = (await bar())?;
140
150
|
141
151
help: `await` is a postfix operation
142
152
|
143
- LL | let _ = (bar().await)?;
144
- | ~~~~~~~~~~~
153
+ LL - let _ = (await bar())?;
154
+ LL + let _ = (bar().await)?;
155
+ |
145
156
146
157
error: incorrect use of `await`
147
158
--> $DIR/incorrect-syntax-suggestions.rs:68:24
@@ -175,8 +186,9 @@ LL | let _ = await!(bar());
175
186
|
176
187
help: `await` is a postfix operation
177
188
|
178
- LL | let _ = bar().await;
179
- | ~~~~~~~~~~~
189
+ LL - let _ = await!(bar());
190
+ LL + let _ = bar().await);
191
+ |
180
192
181
193
error: incorrect use of `await`
182
194
--> $DIR/incorrect-syntax-suggestions.rs:105:13
@@ -186,8 +198,9 @@ LL | let _ = await!(bar())?;
186
198
|
187
199
help: `await` is a postfix operation
188
200
|
189
- LL | let _ = bar().await?;
190
- | ~~~~~~~~~~~
201
+ LL - let _ = await!(bar())?;
202
+ LL + let _ = bar().await)?;
203
+ |
191
204
192
205
error: incorrect use of `await`
193
206
--> $DIR/incorrect-syntax-suggestions.rs:110:17
@@ -197,8 +210,9 @@ LL | let _ = await!(bar())?;
197
210
|
198
211
help: `await` is a postfix operation
199
212
|
200
- LL | let _ = bar().await?;
201
- | ~~~~~~~~~~~
213
+ LL - let _ = await!(bar())?;
214
+ LL + let _ = bar().await)?;
215
+ |
202
216
203
217
error: incorrect use of `await`
204
218
--> $DIR/incorrect-syntax-suggestions.rs:117:17
@@ -208,8 +222,9 @@ LL | let _ = await!(bar())?;
208
222
|
209
223
help: `await` is a postfix operation
210
224
|
211
- LL | let _ = bar().await?;
212
- | ~~~~~~~~~~~
225
+ LL - let _ = await!(bar())?;
226
+ LL + let _ = bar().await)?;
227
+ |
213
228
214
229
error: expected expression, found `=>`
215
230
--> $DIR/incorrect-syntax-suggestions.rs:124:25
@@ -227,8 +242,9 @@ LL | match await { await => () }
227
242
|
228
243
help: `await` is a postfix operation
229
244
|
230
- LL | match { await => () }.await
231
- | ~~~~~~~~~~~~~~~~~~~~~
245
+ LL - match await { await => () }
246
+ LL + match { await => () }.await
247
+ |
232
248
233
249
error: expected one of `.`, `?`, `{`, or an operator, found `}`
234
250
--> $DIR/incorrect-syntax-suggestions.rs:127:1
0 commit comments