Error code E0590

break or continue keywords were used in a condition of a while loop without a label.

Erroneous code code:

while break {}
Run

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 {}
Run

Back to list of error codes