Closed
Description
I tried this code:
struct Foo {
x: i32,
y: i32,
}
fn test(Foo {
x,
}: Foo) {}
I expected to see this happen:
A suggestion to change x,
to x, ..
Instead, this happened:
A suggestion to change x,
to x, ..,
(note the extra comma!)
With the comma at the end, I get a parser error and a suggestion to remove the comma.
Meta
Nightly on playground: 1.49.0-nightly (2020-10-27 07e968b)
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Suggestions generated by the compiler applied by `cargo fix`Category: This is a bug.Diagnostics: A structured suggestion resulting in incorrect code.Diagnostics: An error or lint that needs small tweaks.Relevant to the compiler team, which will review and decide on the PR/issue.