Rollup merge of #72235 - GuillaumeGomez:cleanup-E0590, r=Dylan-DPC

Clean up E0590 explanation

r? @Dylan-DPC
This commit is contained in:
Ralf Jung 2020-05-22 16:58:26 +02:00 committed by GitHub
commit 02eb002ee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,17 @@
`break` or `continue` must include a label when used in the condition of a
`while` loop.
`break` or `continue` keywords were used in a condition of a `while` loop
without a label.
Example of erroneous code:
Erroneous code code:
```compile_fail,E0590
while break {}
```
`break` or `continue` must include a label when used in the condition of a
`while` loop.
To fix this, add a label specifying which loop is being broken out of:
```
'foo: while break 'foo {}
```