// revisions: old re #![cfg_attr(re, feature(re_rebalance_coherence))] trait Foo { fn foo() {} } impl Foo for T {} impl Foo for U {} //[old]~^ ERROR conflicting implementations of trait `Foo`: //[re]~^^ ERROR E0119 trait Bar { fn bar() {} } impl Bar for (T, u8) {} impl Bar for (u8, T) {} //[old]~^ ERROR conflicting implementations of trait `Bar` for type `(u8, u8)`: //[re]~^^ ERROR E0119 trait Baz { fn baz() {} } impl Baz for T {} impl Baz for u8 {} //[old]~^ ERROR conflicting implementations of trait `Baz` for type `u8`: //[re]~^^ ERROR E0119 trait Quux { fn quux() {} } impl Quux for T {} impl Quux for T {} //[old]~^ ERROR conflicting implementations of trait `Quux<_, _>`: //[re]~^^ ERROR E0119 impl Quux for T {} //[old]~^ ERROR conflicting implementations of trait `Quux<_, _>`: //[re]~^^ ERROR E0119 fn main() {}