unused_variable suggets removing struct field from destructive binding which obv. does not work like this #105028
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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.
Given the following code:
The current output is:
The suggestion is questionable because
Struct { x: .. }
is not valid rust code, we should probably suggest removing thex:
as well..?Errors of the code rustc suggested:
The text was updated successfully, but these errors were encountered: