1 2 3 4 5 6 7 8 9 10 11 12 13 14
// DEPRECATED /* pub trait MyAdd<Rhs = i32> { type Output; fn add(self, rhs: Rhs) -> Self::Output; } pub trait MyMul<Rhs = i32> { type Output; fn mul(self, rhs: Rhs) -> Self::Output; } */