We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 53d0046 + 985ebf2 commit 02eb002Copy full SHA for 02eb002
src/librustc_error_codes/error_codes/E0590.md
@@ -1,13 +1,17 @@
1
-`break` or `continue` must include a label when used in the condition of a
2
-`while` loop.
+`break` or `continue` keywords were used in a condition of a `while` loop
+without a label.
3
4
-Example of erroneous code:
+Erroneous code code:
5
6
```compile_fail,E0590
7
while break {}
8
```
9
10
+`break` or `continue` must include a label when used in the condition of a
11
+`while` loop.
12
+
13
To fix this, add a label specifying which loop is being broken out of:
14
15
16
'foo: while break 'foo {}
17
0 commit comments