I try to implement for educational purposes a simple trait called Compare that implement equal function.
In this example I don't understand why when I have an implementation in the generic trait, the compiler can't use the implementation for i32. When I don't put the implementation in the trait it work fine.
How can I tell the compiler to use the non specialized first then the generic if no specialization is found?
Thank you !