Account for derefs when suggesting assoc function
This commit is contained in:
parent
5497ba1690
commit
3166ce81ec
4 changed files with 52 additions and 3 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue