5 ms·
It's not clear from context in your comment if you're saying this, but, for `x: &'a T`, 'a is a bound in two ways: - it is the maximum possible lifetime of the
by dbaupp 11y ago
It's not clear from context in your comment if you're saying this, but, for `x: &'a T`, 'a is a bound in two ways:
- it is the maximum possible lifetime of the x variable itself,
- it is the minimum lifetime of the `T` instance x points to.
These are 100% related of course (x can't point to something that is invalid), but it is worth being careful about which end of a reference/pointer you're talking about when talking about validity.
- sixbrx 11y agoThanks for this comment, that clarifies things a lot for me. I think it should be in the docs (with equal brevity) if not already.
- steveklabnik 11y agoI've made a note to check it out, thanks.