未验证 提交 02eb002e 编写于 作者: R Ralf Jung 提交者: GitHub

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

Clean up E0590 explanation

r? @Dylan-DPC
`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 {}
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册