Iterating a vector that needs to have mutable references error is a bit cryptic and leads down wrong path #114311
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
First Error:
Second Error:
Third Error:
Another dead-end:
Desired output
Rationale and extra context
The first error compiler messages leads to the second error, which in turn leads to the third error which ends up not solving the actual issue.
I'm not sure if the desired output is the best way to go but I believe I would have fixed the issue a lot faster if I had that instead.
Other cases
No response
Anything else?
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=e7a08793435e70676d81d98c826b0286
The text was updated successfully, but these errors were encountered: