@@ -23,7 +23,7 @@ note: the `if` expression is missing a block after this condition
2323 |
2424LL | if let () = () 'a {}
2525 | ^^^^^^^^^^^
26- help: try placing this code inside a block
26+ help: you might have meant to write this as part of a block
2727 |
2828LL | if let () = () { 'a {} }
2929 | + +
@@ -53,7 +53,7 @@ note: the `if` expression is missing a block after this condition
5353 |
5454LL | if true 'a {}
5555 | ^^^^
56- help: try placing this code inside a block
56+ help: you might have meant to write this as part of a block
5757 |
5858LL | if true { 'a {} }
5959 | + +
@@ -80,7 +80,7 @@ LL | loop 'a {}
8080 | |
8181 | while parsing this `loop` expression
8282 |
83- help: try placing this code inside a block
83+ help: you might have meant to write this as part of a block
8484 |
8585LL | loop { 'a {} }
8686 | + +
@@ -108,7 +108,7 @@ LL | while true 'a {}
108108 | | this `while` condition successfully parsed
109109 | while parsing the body of this `while` expression
110110 |
111- help: try placing this code inside a block
111+ help: you might have meant to write this as part of a block
112112 |
113113LL | while true { 'a {} }
114114 | + +
@@ -136,7 +136,7 @@ LL | while let () = () 'a {}
136136 | | this `while` condition successfully parsed
137137 | while parsing the body of this `while` expression
138138 |
139- help: try placing this code inside a block
139+ help: you might have meant to write this as part of a block
140140 |
141141LL | while let () = () { 'a {} }
142142 | + +
@@ -161,7 +161,7 @@ error: expected `{`, found `'a`
161161LL | for _ in 0..0 'a {}
162162 | ^^ expected `{`
163163 |
164- help: try placing this code inside a block
164+ help: you might have meant to write this as part of a block
165165 |
166166LL | for _ in 0..0 { 'a {} }
167167 | + +
@@ -188,7 +188,7 @@ LL | unsafe 'a {}
188188 | |
189189 | while parsing this `unsafe` expression
190190 |
191- help: try placing this code inside a block
191+ help: you might have meant to write this as part of a block
192192 |
193193LL | unsafe { 'a {} }
194194 | + +
0 commit comments