]> git.proxmox.com Git - rustc.git/blame - tests/ui/resolve/use-self-in-inner-fn.rs
bump version to 1.80.1+dfsg1-1~bpo12+pve1
[rustc.git] / tests / ui / resolve / use-self-in-inner-fn.rs
CommitLineData
b7449926 1struct A;
8faf50e0 2
b7449926
XL
3impl 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 14fn main() {}