@@ -140,7 +140,7 @@ error: expected `{`, found `#`
140140 --> $DIR/attr-stmt-expr-attr-bad.rs:41:37
141141 |
142142LL | #[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: `{ {} }`
144144 | | |
145145 | | expected `{`
146146 | this `if` expression has a condition, but no block
@@ -163,7 +163,7 @@ error: expected `{`, found `#`
163163 --> $DIR/attr-stmt-expr-attr-bad.rs:47:45
164164 |
165165LL | #[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: `{ {} }`
167167 | |
168168 | expected `{`
169169
@@ -179,15 +179,15 @@ error: expected `{`, found `#`
179179 --> $DIR/attr-stmt-expr-attr-bad.rs:51:45
180180 |
181181LL | #[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 {} }`
183183 | |
184184 | expected `{`
185185
186186error: expected `{`, found `#`
187187 --> $DIR/attr-stmt-expr-attr-bad.rs:53:50
188188 |
189189LL | #[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: `{ {} }`
191191 | | |
192192 | | expected `{`
193193 | this `if` expression has a condition, but no block
@@ -204,7 +204,7 @@ error: expected `{`, found `#`
204204 --> $DIR/attr-stmt-expr-attr-bad.rs:57:45
205205 |
206206LL | #[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: `{ {} }`
208208 | | |
209209 | | expected `{`
210210 | this `if` expression has a condition, but no block
@@ -227,7 +227,7 @@ error: expected `{`, found `#`
227227 --> $DIR/attr-stmt-expr-attr-bad.rs:63:53
228228 |
229229LL | #[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: `{ {} }`
231231 | |
232232 | expected `{`
233233
@@ -243,15 +243,15 @@ error: expected `{`, found `#`
243243 --> $DIR/attr-stmt-expr-attr-bad.rs:67:53
244244 |
245245LL | #[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 {} }`
247247 | |
248248 | expected `{`
249249
250250error: expected `{`, found `#`
251251 --> $DIR/attr-stmt-expr-attr-bad.rs:69:66
252252 |
253253LL | #[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: `{ {} }`
255255 | | |
256256 | | expected `{`
257257 | this `if` expression has a condition, but no block
0 commit comments