Suggest as_ref()
in E0507 if applicable
#61109
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
P-low
Low priority
Given:
rustc
should suggest usingselection.1..as_ref()
:cc #51100, #57158
From https://thenewwazoo.github.io/clone.html
The text was updated successfully, but these errors were encountered: