#![feature(associated_type_defaults)] struct S(T); trait Tr { type A = (); } impl Tr for S {} // OK impl> Tr for S {} // OK impl Tr for S where Self: Copy {} // OK impl Tr for S where S: Copy {} // OK impl Tr for S where Self::A: Copy {} // OK impl Tr for Self {} //~ ERROR `Self` is not valid in the self type of an impl block impl Tr for S {} //~ ERROR `Self` is not valid in the self type of an impl block impl Self {} //~ ERROR `Self` is not valid in the self type of an impl block impl S {} //~ ERROR `Self` is not valid in the self type of an impl block impl (Self, Self) {} //~ ERROR `Self` is not valid in the self type of an impl block impl Tr for S {} //~ ERROR cycle detected fn main() {}