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