blob: 1ed3767643a00f23558b491c30558c03becf0271 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// 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 {}
//~^ ERROR the trait bound `for<'a> T: ToUnit<'a>` is not satisfied
fn main() {}
|