]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use-self-in-inner-fn.rs
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / 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() {}