2024-03-23 10:33:43 -05:00
|
|
|
// regression test for issue #121649.
|
|
|
|
|
|
|
|
trait ToUnit<'a> {
|
|
|
|
type Unit;
|
|
|
|
}
|
|
|
|
|
|
|
|
trait Overlap<T> {}
|
|
|
|
|
|
|
|
type Assoc<'a, T> = <T as ToUnit<'a>>::Unit;
|
|
|
|
|
|
|
|
impl<T> Overlap<T> for T {}
|
|
|
|
|
|
|
|
impl<T> Overlap<for<'a> fn(&'a (), Assoc<'a, T>)> for T {}
|
2024-10-15 19:38:43 -05:00
|
|
|
//~^ ERROR the trait bound `for<'a> T: ToUnit<'a>` is not satisfied
|
|
|
|
//~| ERROR the trait bound `for<'a> T: ToUnit<'a>` is not satisfied
|
2024-03-23 10:33:43 -05:00
|
|
|
|
|
|
|
fn main() {}
|