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