Skip to content

Conversation

@tuzz
Copy link

@tuzz tuzz commented Mar 17, 2018

If there is exactly one input lifetime position (elided or not), that
lifetime is assigned to all elided output lifetimes.

(https://doc.rust-lang.org/beta/nomicon/lifetime-elision.html)

I tried to remove this lifetime too as the same rule should apply, but the compiler wasn't happy. Strangely, it compiled when I changed OplogBuilder to Self in the return value, but I didn't want to make that change because then the signature would be inconsistent with the others.

> If there is exactly one input lifetime position (elided or not), that
> lifetime is assigned to all elided output lifetimes.

(https://doc.rust-lang.org/beta/nomicon/lifetime-elision.html)
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.

1 participant