]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0590.md
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0590.md
1 `break` or `continue` keywords were used in a condition of a `while` loop
2 without a label.
3
4 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 ```