]> git.lizzy.rs Git - rust.git/blob - src/docs/mistyped_literal_suffixes.txt
Auto merge of #9421 - xphoniex:fix-#9420, r=giraffate
[rust.git] / src / docs / mistyped_literal_suffixes.txt
1 ### What it does
2 Warns for mistyped suffix in literals
3
4 ### Why is this bad?
5 This is most probably a typo
6
7 ### Known problems
8 - Does not match on integers too large to fit in the corresponding unsigned type
9 - Does not match on `_127` since that is a valid grouping for decimal and octal numbers
10
11 ### Example
12 ```
13 `2_32` => `2_i32`
14 `250_8 => `250_u8`
15 ```