rust_2021_incompatible_closure_captures lint produces bad formatting #87952
Labels
A-closures
Area: Closures (`|…| { … }`)
A-edition-2021
Area: The 2021 edition
D-edition
Diagnostics: An error or lint that should account for edition differences.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
suggests:
It adds
let _ = &a;
on the same line as the{
. There's also an extra space after the;
there.Instead, it'd be nice if it produced:
The text was updated successfully, but these errors were encountered: