Misleading error message: Type mismatch when initializing struct fields with shorthand #52497
Labels
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
The following code has a misleading proposed fix:
The reported error message is:
Trying to apply the suggestion fails and causes a syntax error, the correct fix would be
r: r.into()
.The text was updated successfully, but these errors were encountered: