Don't know why I wasn't using self properly there

This commit is contained in:
Lokathor 2019-02-01 01:50:11 -07:00
parent 2f5d2455a4
commit 26a354065c

View file

@ -1530,7 +1530,7 @@ assert_eq!(", stringify!($SelfT), "::MIN.overflowing_neg(), (", stringify!($Self
#[inline]
#[stable(feature = "wrapping", since = "1.7.0")]
pub const fn overflowing_neg(self) -> (Self, bool) {
((self ^ -1).wrapping_add(1), s == $SelfT::min_value())
((self ^ -1).wrapping_add(1), self == Self::min_value())
}
}