Skip to content

Conversation

@randomPoison
Copy link
Collaborator

@gribozavr I had a couple more fixes for #2964 that I didn't push until after you merged the branch.


- The "help" message in the error notes that we can add a lifetime bound
`'b: 'a` to say that `'b` will live at least as long as `'a`, which would then
allow us to return `query`. This is an example of lifetime "variance", which
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is lifetime subtyping; variance only has to do with the way the subtyping relation is reversed for function argument types relative to function return types.

---

# Lifetimes in Function Calls
# Lifetimes Elision
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be "Lifetime Elision" (singular).

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.

4 participants