#rustacians ... HELP! 😅
Maybe I need to unlearn some old OOP habits when working with #rustlang but ... for the following code:
trait Bonus { ... }
trait A { ... }
trait B { ... }
impl<T: A> Bonus for T { ... }
impl<T: B> Bonus for T { ... }
I get the following Rust compiler error:
conflicting implementations of trait `filters::Bonus` [E0119]
Shouldn't I get this error only when I attempt to implement both traits A and B for some type T? As long as they're mutually exclusive, I am not sure I get why the compiler is complaining. How would you go about it?