Invalid "a constant with a similar name exists: _
" suggestion when a const _
is in scope
#68719
Labels
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
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.
For example (playground):
Errors with:
The same also happens with
use Trait as _
(playground):The diagnostics shouldn't suggest things named underscore.
The text was updated successfully, but these errors were encountered: