rust/src/test/ui/use-self-in-inner-fn.stderr

16 lines
520 B
Plaintext
Raw Normal View History

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`
...
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
error: aborting due to previous error
For more information about this error, try `rustc --explain E0401`.