News for hackers. Stuff that matters.
Re:A half-hour to learn Rust by DougBTX on Saturday January 02, 2021 @06:07AM (#25611972)
> T: ‘a is T outlives ‘a; but types are not generated at runtime.

Yes, that’s true, but you can make it a bit more specific by saying “all the references in T outlive ‘a”. Then it should make more sense, as references are generated at runtime.

This gets to the heart of what makes Rust an interesting language, as references are generated at runtime, but how long those references are valid for is checked at compile time using lifetime bounds.

There are no comments on this comment yet.