bad suggestion line for use
statements with a derive
#44995
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
After #44215, this gives the following error message:
This suggests placing the
use
-statement at line 2, which is between the#[derive]
and thepub struct X;
line, while we want to place theuse
statement before the#[derive]
.cc @oli-obk
The text was updated successfully, but these errors were encountered: