-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Improve "Doesn't live long enough" error #37405
Conversation
18 | } | ||
| ^ `x` dropped here while still borrowed | ||
| | ||
note: borrowed value must be valid for the lifetime 'a as defined on the block at 16:30... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we want to move away from this kind of message and move towards showing them where that lifetime ends rather than them having to look up what 16:30 means and trying to figure it out.
Can we do this patch without touching these errors, or are they part of what needs to be updated for this PR?
|
@jonathandturner Is it ok? |
That looks good. @bors r+ |
📌 Commit b481a2d has been approved by |
☔ The latest upstream changes (presumably #37497) made this pull request unmergeable. Please resolve the merge conflicts. |
case with different lifetime with spans
@jonathandturner rebased |
@bors r+ |
📌 Commit a0e7e35 has been approved by |
Improve "Doesn't live long enough" error case with different lifetime scope issue rust-lang#36537 part of rust-lang#35233 r? @jonathandturner
case with different lifetime scope
issue #36537 part of #35233
r? @jonathandturner