Compiler suggestion "try using a conversion method: .to_string" #105494
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
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.
I tried this code (playground):
I expected to see this happen:
Instead, this happened:
This is just a very specific instance where the suggestion to add some code, while "technically correct", is less useful than the better suggestion to remove some code.
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: