1 error[E0433]: failed to resolve. Use of undeclared type or module `Self`
2 --> $DIR/use-self-type.rs:17:16
4 LL | pub(in Self::f) struct Z; //~ ERROR Use of undeclared type or module `Self`
5 | ^^^^ Use of undeclared type or module `Self`
7 error[E0432]: unresolved import `Self`
8 --> $DIR/use-self-type.rs:16:13
10 LL | use Self::f; //~ ERROR unresolved import
11 | ^^^^ Use of undeclared type or module `Self`
13 error: aborting due to 2 previous errors
15 Some errors occurred: E0432, E0433.
16 For more information about an error, try `rustc --explain E0432`.