E0502
diagnostic missing help text when using IndexMut
instead of .get_mut
.
#95574
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code (playground):
The current output is:
When you use
.get_mut
instead, you get a helpful hint advising you to extract the immutable borrow to a local variable (playground):Ideally the output for the first code snippet should contain the same help message.
@rustbot label +D-terse +D-confusing +D-newcomer-roadblock
The text was updated successfully, but these errors were encountered: