]> git.proxmox.com Git - rustc.git/blob - src/test/ui/resolve/use-self-in-inner-fn.rs
Update unsuspicious file list
[rustc.git] / src / test / 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() {}