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

Implement lifetime elision for Foo(...) -> ... type sugar. #19589

Merged
merged 1 commit into from
Dec 9, 2014

Conversation

huonw
Copy link
Member

@huonw huonw commented Dec 6, 2014

This means that Fn(&A) -> (&B, &C) is equivalent to for<'a> Fn(&'a A) -> (&'a B, &'a C) similar to the lifetime elision of lower-case fn in
types and declarations.

Closes #18992.

This means that `Fn(&A) -> (&B, &C)` is equivalent to `for<'a> Fn(&'a A)
-> (&'a B, &'a C)` similar to the lifetime elision of lower-case `fn` in
types and declarations.

Closes rust-lang#18992.
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 9, 2014
This means that `Fn(&A) -> (&B, &C)` is equivalent to `for<'a> Fn(&'a A)
-> (&'a B, &'a C)` similar to the lifetime elision of lower-case `fn` in
types and declarations.

Closes rust-lang#18992.
@bors bors merged commit b800ce1 into rust-lang:master Dec 9, 2014
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.

Parentheses notation should respect lifetime elision
3 participants