Incorrect overflowing literals error with saturating_sub #63733
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
(Playground)
Errors:
-128
is not out of range fori8
, however the lint claims it is. This doesn't happen when printing a plain-128i8
without.saturating_sub
. It also doesn't happen when the-128i8
is passed as arg to.saturating_sub
.The text was updated successfully, but these errors were encountered: