about summary refs log tree commit diff
path: root/tests/ui/methods/dont-suggest-import-on-deref-err.stderr
blob: 20a63ff375d19a968283236c6deb6fdf19e91714 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0046]: not all trait items implemented, missing: `Target`, `deref`
  --> $DIR/dont-suggest-import-on-deref-err.rs:7:1
   |
LL | impl Deref for Foo {}
   | ^^^^^^^^^^^^^^^^^^ missing `Target`, `deref` in implementation
   |
   = help: implement the missing item: `type Target = /* Type */;`
   = help: implement the missing item: `fn deref(&self) -> &<Self as Deref>::Target { todo!() }`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0046`.