2016-10-24 01:54:31 +00:00
|
|
|
error[E0046]: not all trait items implemented, missing: `Target`
|
|
|
|
--> $DIR/issue-24356.rs:30:9
|
|
|
|
|
|
2017-04-14 23:38:10 +00:00
|
|
|
30 | / impl Deref for Thing {
|
2016-10-24 00:22:06 +00:00
|
|
|
31 | | //~^ ERROR E0046
|
|
|
|
32 | | //~| NOTE missing `Target` in implementation
|
|
|
|
33 | | //~| NOTE `Target` from trait: `type Target;`
|
|
|
|
34 | | fn deref(&self) -> i8 { self.0 }
|
|
|
|
35 | | }
|
2017-04-14 23:38:10 +00:00
|
|
|
| |_________^ missing `Target` in implementation
|
2016-10-24 01:54:31 +00:00
|
|
|
|
|
|
|
|
= note: `Target` from trait: `type Target;`
|
|
|
|
|
2017-05-22 11:46:05 +00:00
|
|
|
error: aborting due to previous error(s)
|
2016-10-24 01:54:31 +00:00
|
|
|
|