Type mismatch method suggestion doesn't work for as_deref #80508
Labels
A-result-option
Area: Result and Option combinators
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
It would be really nice if the mismatched type diagnostic would work for
as_deref
. Currently, trying to useOption<Vec<String>>
whereOption<&[String]>
is expected doesn't give a method call suggestion the way one gets a suggestion to borrow when trying to useVec<String>
where&[String]
is expected.^ no suggestion
The text was updated successfully, but these errors were encountered: