-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add suggestion/explanation to error on trying to mutably borrow immutable reference #45405
Comments
Current output:
Applying the suggestion is (correctly) a parse error. We need to change that suggestion to find the appropriate place for the |
Current output:
|
…-errors Provide structured suggestion for binding needing type on E0594 Partially address rust-lang#45405.
Current output:
Applying the suggestion we get
Only thing left is to detect when an E0308 is pointing at an |
reports
Which is correct, but the fix is to modify the creation of the
reader
variable. While this case is easy, it's probably less so in the general case. Possible avenues of improvement:&T
, but should be&mut T
.The text was updated successfully, but these errors were encountered: