1 // Check that projections don't count as constraining type parameters.
5 trait Tr { type Assoc; fn test(); }
7 impl<T: Tr> S<T::Assoc> {
8 //~^ ERROR the type parameter `T` is not constrained
14 trait Trait1<T> { type Bar; }
15 trait Trait2<'x> { type Foo; }
17 impl<'a,T: Trait2<'a>> Trait1<<T as Trait2<'a>>::Foo> for T {
18 //~^ ERROR the lifetime parameter `'a` is not constrained