Add more context to the literal overflow message
This commit is contained in:
parent
e5e8ba4edc
commit
a4ffbaadc8
10 changed files with 107 additions and 11 deletions
|
|
@ -5,6 +5,7 @@ LL | for n in 100_000.. {
|
|||
| ^^^^^^^
|
||||
|
|
||||
= note: `#[deny(overflowing_literals)]` on by default
|
||||
= note: the literal `100_000` does not fit into the type `u16` whose range is `0..=65535`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue