Using non-existent associated method doesn't hint about deref #100278
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In #100227, someone was a little confused by
<&[T]>::contains
not being accessible asVec::<T>::contains
.Given the following code:
The current output is:
Ideally, it would add a note about the method being found on a type that
Vec<_, _>
can deref to.The text was updated successfully, but these errors were encountered: