Static rustc_lint::types::OVERFLOWING_LITERALS

source ·
Expand description

The overflowing_literals lint detects literal out of range for its type.


let x: u8 = 1000;



It is usually a mistake to use a literal that overflows the type where it is used. Either use a literal that is within range, or change the type to be within the range of the literal.