summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/use-self-in-inner-fn.rs
blob: f4dfa4c40ab249d1e523e7d5dd89434870a0b723 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct A;

impl A {
//~^ NOTE `Self` type implicitly declared here, by this `impl`
    fn banana(&mut self) {
        fn peach(this: &Self) {
        //~^ ERROR can't use generic parameters from outer item
        //~| NOTE use of generic parameter from outer item
        //~| NOTE refer to the type directly here instead
        }
    }
}

fn main() {}