]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/use-self-in-inner-fn.rs
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / use-self-in-inner-fn.rs
1 struct A;
2
3 impl A {
4 //~^ NOTE `Self` type implicitly declared here, by this `impl`
5     fn banana(&mut self) {
6         fn peach(this: &Self) {
7         //~^ ERROR can't use generic parameters from outer function
8         //~| NOTE use of generic parameter from outer function
9         //~| NOTE use a type here instead
10         }
11     }
12 }
13
14 fn main() {}