blob: eccb315feb1e2e126701dc1ef48344a60e6f6fc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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 generic parameters from outer function
//~| NOTE use of generic parameter from outer function
//~| NOTE use a type here instead
}
}
}
fn main() {}
|