1 error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions
2 --> $DIR/use-self-type.rs:7:16
4 LL | pub(in Self::f) struct Z;
5 | ^^^^ `Self` is only available in impls, traits, and type definitions
7 error[E0432]: unresolved import `Self`
8 --> $DIR/use-self-type.rs:6:13
11 | ^^^^ `Self` is only available in impls, traits, and type definitions
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`.