Compiler's help suggestion is incorrect when passing Option<String> into a function expecting Option<&str> #107604
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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
rustc's help suggestions are often extremely helpful, but in this case the suggested change simply does not work and also doesn't provide any further help or explanation about why it doesn't work.
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: