Add more context to the literal overflow message

This commit is contained in:
YI 2020-03-14 11:57:04 +08:00
parent e5e8ba4edc
commit a4ffbaadc8
10 changed files with 107 additions and 11 deletions

View file

@ -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