fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
526 B15 linesraw
1error[E0401]: can't use generic parameters from outer function
2  --> $DIR/use-self-in-inner-fn.rs:6:25
3   |
4LL | impl A {
5   | ---- `Self` type implicitly declared here, by this `impl`
6...
7LL |         fn peach(this: &Self) {
8   |                         ^^^^
9   |                         |
10   |                         use of generic parameter from outer function
11   |                         use a type here instead
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0401`.