Suggestion to fix clashing trait and generic names is incorrect when desired trait comes from module #109950
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
The import is already there. Ideally it should tell you that the import is being shadowed by the generic, but barring that, it definitely shouldn’t suggest adding a useless line of code that already exists and only creates more errors.
Other cases
No response
Anything else?
This happens on stable and nightly.
The text was updated successfully, but these errors were encountered: