fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
534 B15 linesraw
1error[E0401]: can't use generic parameters from outer item
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 item
11   |                         refer to the type directly here instead
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0401`.