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