E0105

A chained comparison such as a < b < c. Comparison operators do not chain.

Machine-applicable fix: none.

Example

This program fails with E0105.

fn main() {
    let a = 1
    let ok = 0 < a < 3
}

Fixed

The same program, fixed.

fn main() {
    let a = 1
    let ok = 0 < a && a < 3
}

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

All error codes