Dereferencing Deref
types other than references is missing suggestion
#59819
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
The
b = a
assignment below suggests dereferencinga
in order to make the code compile. The same suggestion applies toy = x
, but no suggestion is produced by the compiler. I think we should report this suggestion for all type mismatches that satisfyGotType: Deref<Target = ExpectedType>
(Playground)
Errors:
The text was updated successfully, but these errors were encountered: