1 error[E0411]: expected trait, found self type `Self`
2 --> $DIR/resolve-self-in-impl-2.rs:4:6
4 LL | impl Self for S {}
5 | ^^^^ `Self` is only available in impls, traits, and type definitions
7 error[E0405]: cannot find trait `N` in `Self`
8 --> $DIR/resolve-self-in-impl-2.rs:5:12
10 LL | impl Self::N for S {}
11 | ^ not found in `Self`
13 error: aborting due to 2 previous errors
15 Some errors have detailed explanations: E0405, E0411.
16 For more information about an error, try `rustc --explain E0405`.