error[E0119]: conflicting implementations of trait `Foo` for type `u8`: --> $DIR/specialization-polarity.rs:9:1 | LL | impl Foo for T {} | ----------------- first implementation here LL | impl !Foo for u8 {} //~ ERROR E0119 | ^^^^^^^^^^^^^^^^ conflicting implementation for `u8` error[E0119]: conflicting implementations of trait `Bar` for type `u8`: --> $DIR/specialization-polarity.rs:14:1 | LL | impl !Bar for T {} | ------------------ first implementation here LL | impl Bar for u8 {} //~ ERROR E0119 | ^^^^^^^^^^^^^^^ conflicting implementation for `u8` error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0119`.