struct S0(T); impl S0 { fn foo() { const C: S0 = Self(0); //~^ ERROR can't reference `Self` constructor from outer item fn bar() -> S0 { Self(0) //~^ ERROR can't reference `Self` constructor from outer item } } } fn main() {}