1 2 3 4 5 6 7 8 9 10 11 12
struct A<B>(B); impl<B> A<B> { fn d() { fn d() { Self(1) //~^ ERROR can't reference `Self` constructor from outer item } } } fn main() {}