error[E0119]: conflicting implementations of trait `MyTrait` for type `Foo`: --> $DIR/E0119.rs:23:1 | LL | impl MyTrait for T { | --------------------- first implementation here ... LL | impl MyTrait for Foo { //~ ERROR E0119 | ^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Foo` error: aborting due to previous error If you want more information on this error, try using "rustc --explain E0119"