blob: cde96dc778bbedf00f53ae5edb2997d2d99aa5ab [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 type parameters from outer function
//~| NOTE use of type variable from outer function
//~| NOTE use a type here instead
}
}
}
fn main() {}