You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a Euclidean Vector class, and want to override some operations for it. However, when I try to add mul for both Vector-Vector multiplication and Vector-Scalar multiplication, the compiler complains that there is a Duplicate supertrait in trait declaration:
euclidean_vector.rs:5:0:20:1 error:Duplicate supertrait in trait declaration
euclidean_vector.rs:5pubtraitEuclideanVector<T:Num + Algebraic>:euclidean_vector.rs:6Add<Self,Self> +
euclidean_vector.rs:7Sub<Self,Self> +
euclidean_vector.rs:8Mul<Self,Self> +
euclidean_vector.rs:9Mul<T,Self> +
euclidean_vector.rs:10One + Zero +