// 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 the trait bound `for<'a> T: ToUnit<'a>` is not satisfied //~| ERROR the trait bound `for<'a> T: ToUnit<'a>` is not satisfied fn main() {}