@@ -140,7 +140,7 @@ error: expected `{`, found `#`
140
140
--> $DIR/attr-stmt-expr-attr-bad.rs:41:37
141
141
|
142
142
LL | #[cfg(FALSE)] fn e() { let _ = if 0 #[attr] {}; }
143
- | -- ^ --- help: try placing this code inside a block: `{ {}; }`
143
+ | -- ^ -- help: try placing this code inside a block: `{ {} }`
144
144
| | |
145
145
| | expected `{`
146
146
| this `if` expression has a condition, but no block
@@ -163,7 +163,7 @@ error: expected `{`, found `#`
163
163
--> $DIR/attr-stmt-expr-attr-bad.rs:47:45
164
164
|
165
165
LL | #[cfg(FALSE)] fn e() { let _ = if 0 {} else #[attr] {}; }
166
- | ^ --- help: try placing this code inside a block: `{ {}; }`
166
+ | ^ -- help: try placing this code inside a block: `{ {} }`
167
167
| |
168
168
| expected `{`
169
169
@@ -179,15 +179,15 @@ error: expected `{`, found `#`
179
179
--> $DIR/attr-stmt-expr-attr-bad.rs:51:45
180
180
|
181
181
LL | #[cfg(FALSE)] fn e() { let _ = if 0 {} else #[attr] if 0 {}; }
182
- | ^ -------- help: try placing this code inside a block: `{ if 0 {}; }`
182
+ | ^ ------- help: try placing this code inside a block: `{ if 0 {} }`
183
183
| |
184
184
| expected `{`
185
185
186
186
error: expected `{`, found `#`
187
187
--> $DIR/attr-stmt-expr-attr-bad.rs:53:50
188
188
|
189
189
LL | #[cfg(FALSE)] fn e() { let _ = if 0 {} else if 0 #[attr] {}; }
190
- | -- ^ --- help: try placing this code inside a block: `{ {}; }`
190
+ | -- ^ -- help: try placing this code inside a block: `{ {} }`
191
191
| | |
192
192
| | expected `{`
193
193
| this `if` expression has a condition, but no block
@@ -204,7 +204,7 @@ error: expected `{`, found `#`
204
204
--> $DIR/attr-stmt-expr-attr-bad.rs:57:45
205
205
|
206
206
LL | #[cfg(FALSE)] fn e() { let _ = if let _ = 0 #[attr] {}; }
207
- | -- ^ --- help: try placing this code inside a block: `{ {}; }`
207
+ | -- ^ -- help: try placing this code inside a block: `{ {} }`
208
208
| | |
209
209
| | expected `{`
210
210
| this `if` expression has a condition, but no block
@@ -227,7 +227,7 @@ error: expected `{`, found `#`
227
227
--> $DIR/attr-stmt-expr-attr-bad.rs:63:53
228
228
|
229
229
LL | #[cfg(FALSE)] fn e() { let _ = if let _ = 0 {} else #[attr] {}; }
230
- | ^ --- help: try placing this code inside a block: `{ {}; }`
230
+ | ^ -- help: try placing this code inside a block: `{ {} }`
231
231
| |
232
232
| expected `{`
233
233
@@ -243,15 +243,15 @@ error: expected `{`, found `#`
243
243
--> $DIR/attr-stmt-expr-attr-bad.rs:67:53
244
244
|
245
245
LL | #[cfg(FALSE)] fn e() { let _ = if let _ = 0 {} else #[attr] if let _ = 0 {}; }
246
- | ^ ---------------- help: try placing this code inside a block: `{ if let _ = 0 {}; }`
246
+ | ^ --------------- help: try placing this code inside a block: `{ if let _ = 0 {} }`
247
247
| |
248
248
| expected `{`
249
249
250
250
error: expected `{`, found `#`
251
251
--> $DIR/attr-stmt-expr-attr-bad.rs:69:66
252
252
|
253
253
LL | #[cfg(FALSE)] fn e() { let _ = if let _ = 0 {} else if let _ = 0 #[attr] {}; }
254
- | -- ^ --- help: try placing this code inside a block: `{ {}; }`
254
+ | -- ^ -- help: try placing this code inside a block: `{ {} }`
255
255
| | |
256
256
| | expected `{`
257
257
| this `if` expression has a condition, but no block
0 commit comments