static OVERFLOWING_LITERALS: &Lint
The overflowing_literals lint detects literals out of range for their type.
overflowing_literals
let x: u8 = 1000;
{{produces}}
It is usually a mistake to use a literal that overflows its type Change either the literal or its type such that the literal is within the range of its type.