break or continue keywords were used in a condition of a while loop without a label.
Erroneous code code:
#![allow(unused)]
fn main() {
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:
#![allow(unused)]
fn main() {
'foo: while break 'foo {}
}
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0590.html