2018-09-04 10:41:33 -07:00
|
|
|
error[E0401]: can't use type parameters from outer function
|
|
|
|
--> $DIR/use-self-in-inner-fn.rs:16:25
|
|
|
|
|
|
|
|
|
LL | impl A {
|
2018-09-05 09:56:01 -07:00
|
|
|
| ---- `Self` type implicitly declared here, by this `impl`
|
2018-09-04 10:41:33 -07:00
|
|
|
...
|
|
|
|
LL | fn peach(this: &Self) {
|
|
|
|
| ^^^^
|
|
|
|
| |
|
|
|
|
| use of type variable from outer function
|
2018-09-05 08:39:50 -07:00
|
|
|
| use a type here instead
|
2018-09-04 10:41:33 -07:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0401`.
|