Wrong suggestion usize::from for LHS expression #81293
Labels
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I try this code: (Playground)
I expect to see this happen: No invalid suggestion for
usize::from(a) = c + b*5
.Instead, I got this errors:
@rustbot label D-invalid-suggestion T-compiler
The text was updated successfully, but these errors were encountered: