blob: ed64ee885271c1b91d5c3beffc227cd7230ef0db [file] [log] [blame]
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 `Self` from outer item
//~| NOTE use of `Self` from outer item
//~| NOTE `Self` used in this inner function
//~| NOTE refer to the type directly here instead
}
}
}
fn main() {}