Closed
Description
The following code
let _ = string::new();
error[E0433]: failed to resolve: use of undeclared crate or module `string`
--> src/main.rs:2:13
|
2 | let _ = string::new();
| ^^^^^^ use of undeclared crate or module `string`
We should be doing fuzzy matching like we do in other cases and suggest changing string
to String
.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Name/path resolution done by `rustc_resolve` specificallyArea: Suggestions generated by the compiler applied by `cargo fix`Category: An issue proposing an enhancement or a PR with one.Diagnostics: Confusing error or lint; hard to understand for new users.Diagnostics: An error or lint that needs small tweaks.Relevant to the compiler team, which will review and decide on the PR/issue.