E0232

break or continue outside a loop.

Machine-applicable fix: none.

Example

This program fails with E0232.

fn main() {
    break
}

Fixed

The same program, fixed.

fn main() {
    while true {
        break
    }
}

Listed in the checker notes. oskac explain E0232 prints this entry offline.

All error codes