Suggest items
be borrowed in for i in items[x..]
#87994
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=5bb0aaa179979e54df877b3aafe9f507
The current output is:
Ideally, the output should note that
&v[1..]
is a possible solution to these errors.The text was updated successfully, but these errors were encountered: