-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Error messages about lifetimes for mutable Iterator are cryptic. #30257
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
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: Lifetimes / regions
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Current output:
|
It is better. Hovewer, |
19 tasks
Current output:
|
Triage: no change. |
Current output, few changes:
|
Current output
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: Lifetimes / regions
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Example: http://is.gd/8dVXWc
@bluss gave me a helpful link on IRC, stating that is a classic thing.
I think for every "classic" problem there should be a lint giving a link to some article about the problem.
In this case the link can be emitted for any lifetimes problem when mutable references and
Iterator
trait involved together.For reference: link to changed version that does compile.
The text was updated successfully, but these errors were encountered: