Incorrect help suggestion when attempting "arc" as Arc<str> #135412
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
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.
Code
Current output
Desired output
Rationale and extra context
The compiler suggests:
help: consider using the
From
trait instead:Arc<str>::from("arc")
when it should be:
help: consider using the
From
trait instead:Arc::<str>::from("arc")
There's a :: missing to complete the turbofish.
Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: