blob: c0cab37130d6b77472e8afbf26a4d44961a10134 [file]
// regression test for #74299.
#![feature(specialization)]
trait X {
type U;
fn f(&self) -> Self::U {
loop {}
}
}
impl<T> X for T {
default type U = ();
}
trait Y {
fn g(&self) {}
}
impl Y for <() as X>::U {}
impl Y for <i32 as X>::U {}
//~^ ERROR conflicting implementations of trait `Y`
fn main() {
().f().g();
}