]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | struct A; |
8faf50e0 | 2 | |
b7449926 XL |
3 | impl A { |
4 | //~^ NOTE `Self` type implicitly declared here, by this `impl` | |
5 | fn banana(&mut self) { | |
6 | fn peach(this: &Self) { | |
c620b35d FG |
7 | //~^ ERROR can't use `Self` from outer item |
8 | //~| NOTE use of `Self` from outer item | |
781aab86 | 9 | //~| NOTE refer to the type directly here instead |
b7449926 | 10 | } |
8faf50e0 | 11 | } |
0531ce1d XL |
12 | } |
13 | ||
5bcae85e | 14 | fn main() {} |