diff --git a/fixed_wide_vectors/src/macros/vector.rs b/fixed_wide_vectors/src/macros/vector.rs index 2ea5dfb..732dbff 100644 --- a/fixed_wide_vectors/src/macros/vector.rs +++ b/fixed_wide_vectors/src/macros/vector.rs @@ -92,10 +92,10 @@ macro_rules! impl_vector { } } - impl> core::ops::Neg for Vector{ - type Output=Self; + impl,V> core::ops::Neg for Vector{ + type Output=Vector; fn neg(self)->Self::Output{ - Self{ + Vector{ array:self.array.map(|t|-t) } }