]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use/use-self-type.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / use / use-self-type.stderr
1 error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions
2   --> $DIR/use-self-type.rs:7:16
3    |
4 LL |         pub(in Self::f) struct Z;
5    |                ^^^^ `Self` is only available in impls, traits, and type definitions
6
7 error[E0432]: unresolved import `Self`
8   --> $DIR/use-self-type.rs:6:13
9    |
10 LL |         use Self::f;
11    |             ^^^^ `Self` is only available in impls, traits, and type definitions
12
13 error: aborting due to 2 previous errors
14
15 Some errors have detailed explanations: E0432, E0433.
16 For more information about an error, try `rustc --explain E0432`.