// regression test for issue #121649. trait ToUnit<'a> { type Unit; } trait Overlap {} type Assoc<'a, T> = >::Unit; impl Overlap for T {} impl Overlap fn(&'a (), Assoc<'a, T>)> for T {} //~^ ERROR conflicting implementations of trait `Overlap fn(&'a (), _)>` fn main() {}