Skip to content
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

Clarify third lifetime elision rule example #3805

Conversation

elardus-erasmus
Copy link

Upon first read, I stumbled over this. Talking about two input lifetimes being there already, and then Rust gives/assigns the lifetimes. I believe the proposed change clarifies/corrects the example description.

Copy link
Contributor

@chriskrycho chriskrycho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate this (and am sorry you stumbled over it a bit!). However, I think the “input lifetimes” language is actually valuable here, since there are lots of lifetimes floating around—and while I see what you were going for with your suggested edit, I find it to be just as challenging to sort out, just… in a different way. That’s no criticism, either: this is hard to talk about. Thank you again, though!

@chriskrycho chriskrycho closed this Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants