diagnostics for E404 suggests use
which already exists
#120559
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
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.
(A better title would be appreciated)
Code
Current output
Desired output
I like this part:
It could have a suggestion like
did you mean : instead of ,
, especially because,<.>;:
are very close to each other on a US keyboard and could very well be a typo.Rationale and extra context
Applying the suggestion
use std::io::Read
will result in a compile error.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: