E0222

Integer literal out of range for its type, such as 300 as a U8.

Machine-applicable fix: none.

Example

This program fails with E0222.

fn main() {
    let x: U8 = 300
}

Fixed

The same program, fixed.

fn main() {
    let x: U8 = 200
}

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

All error codes