Account for derefs when suggesting assoc function

This commit is contained in:
Esteban Küber 2019-10-05 16:57:14 -07:00
parent 5497ba1690
commit 3166ce81ec
4 changed files with 52 additions and 3 deletions

View file

@ -5,7 +5,7 @@ LL | self.boom();
| -----^^^^
| | |
| | this is an associated function, not a method
| help: use associated function syntax instead: `&Obj::boom`
| help: use associated function syntax instead: `Obj::boom`
|
= note: found the following associated functions; to be used as methods, functions must have a `self` parameter
note: the candidate is defined in an impl for the type `Obj`