@@ -23,7 +23,7 @@ note: the `if` expression is missing a block after this condition
23
23
|
24
24
LL | if let () = () 'a {}
25
25
| ^^^^^^^^^^^
26
- help: try placing this code inside a block
26
+ help: you might have meant to write this as part of a block
27
27
|
28
28
LL | if let () = () { 'a {} }
29
29
| + +
@@ -53,7 +53,7 @@ note: the `if` expression is missing a block after this condition
53
53
|
54
54
LL | if true 'a {}
55
55
| ^^^^
56
- help: try placing this code inside a block
56
+ help: you might have meant to write this as part of a block
57
57
|
58
58
LL | if true { 'a {} }
59
59
| + +
@@ -80,7 +80,7 @@ LL | loop 'a {}
80
80
| |
81
81
| while parsing this `loop` expression
82
82
|
83
- help: try placing this code inside a block
83
+ help: you might have meant to write this as part of a block
84
84
|
85
85
LL | loop { 'a {} }
86
86
| + +
@@ -108,7 +108,7 @@ LL | while true 'a {}
108
108
| | this `while` condition successfully parsed
109
109
| while parsing the body of this `while` expression
110
110
|
111
- help: try placing this code inside a block
111
+ help: you might have meant to write this as part of a block
112
112
|
113
113
LL | while true { 'a {} }
114
114
| + +
@@ -136,7 +136,7 @@ LL | while let () = () 'a {}
136
136
| | this `while` condition successfully parsed
137
137
| while parsing the body of this `while` expression
138
138
|
139
- help: try placing this code inside a block
139
+ help: you might have meant to write this as part of a block
140
140
|
141
141
LL | while let () = () { 'a {} }
142
142
| + +
@@ -161,7 +161,7 @@ error: expected `{`, found `'a`
161
161
LL | for _ in 0..0 'a {}
162
162
| ^^ expected `{`
163
163
|
164
- help: try placing this code inside a block
164
+ help: you might have meant to write this as part of a block
165
165
|
166
166
LL | for _ in 0..0 { 'a {} }
167
167
| + +
@@ -188,7 +188,7 @@ LL | unsafe 'a {}
188
188
| |
189
189
| while parsing this `unsafe` expression
190
190
|
191
- help: try placing this code inside a block
191
+ help: you might have meant to write this as part of a block
192
192
|
193
193
LL | unsafe { 'a {} }
194
194
| + +
0 commit comments