]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/use-self-in-inner-fn.stderr
Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup
[rust.git] / src / test / ui / resolve / use-self-in-inner-fn.stderr
1 error[E0401]: can't use generic parameters from outer function
2   --> $DIR/use-self-in-inner-fn.rs:6:25
3    |
4 LL | impl A {
5    | ---- `Self` type implicitly declared here, by this `impl`
6 ...
7 LL |         fn peach(this: &Self) {
8    |                         ^^^^
9    |                         |
10    |                         use of generic parameter from outer function
11    |                         use a type here instead
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0401`.