// Verify that we ban usage of `Self` as constructor from inner items. struct S0(T); impl S0 { fn foo() { const C: S0 = Self(0); //~^ ERROR can't use generic parameters from outer function fn bar() -> Self { //~^ ERROR can't use generic parameters from outer function Self(0) //~^ ERROR can't use generic parameters from outer function } } } fn main() {}