1 #![feature(associated_type_defaults)]
8 impl Tr<Self> for S {} // OK
9 impl<T: Tr<Self>> Tr<T> for S {} // OK
10 impl Tr for S where Self: Copy {} // OK
11 impl Tr for S where S<Self>: Copy {} // OK
12 impl Tr for S where Self::A: Copy {} // OK
14 impl Tr for Self {} //~ ERROR cycle detected
15 impl Tr for S<Self> {} //~ ERROR cycle detected
16 impl Self {} //~ ERROR cycle detected
17 impl S<Self> {} //~ ERROR cycle detected
18 impl Tr<Self::A> for S {} //~ ERROR cycle detected