RS.CLIPPY.MISTYPED_LITERAL_SUFFIXES
Mistyped literal suffix
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: mistyped_literal_suffixes. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Warns for mistyped suffix in literals
Why is this bad?
This is most probably a typo
Known problems
- Does not match on integers too large to fit in the corresponding unsigned type
- Does not match on
_127since that is a valid grouping for decimal and octal numbers
Example
`2_32` => `2_i32`
`250_8 => `250_u8`