]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use-self-in-inner-fn.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / use-self-in-inner-fn.stderr
1 error[E0401]: can't use type parameters from outer function
2   --> $DIR/use-self-in-inner-fn.rs:16: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 type variable 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`.