Parcourir la source

Small fix for older Rust versions

Yoan Lecoq il y a 8 ans
Parent
commit
b2d957fe4b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      traits/src/sign.rs

+ 1 - 1
traits/src/sign.rs

@@ -74,7 +74,7 @@ macro_rules! signed_impl {
 
 signed_impl!(isize i8 i16 i32 i64);
 
-impl<T: Signed> Signed for Wrapping<T> where Wrapping<T>: Num + Neg<Output=Self>
+impl<T: Signed> Signed for Wrapping<T> where Wrapping<T>: Num + Neg<Output=Wrapping<T>>
 {
     #[inline]
     fn abs(&self) -> Self {