E0235

for over a value that is not a List or a range.

Machine-applicable fix: none.

Example

This program fails with E0235.

fn main() {
    for i in 5 {
        let j = i
    }
}

Fixed

The same program, fixed.

fn main() {
    for i in 0..5 {
        let j = i
    }
}

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

All error codes