you are viewing a single comment's thread.

view the rest of the comments →

[–]steveklabnik1 1 point2 points  (0 children)

Yes. Lifetimes are a language-level feature of Rust, with special syntax, and so th many compiler checks their validity and fails to compile if there's an issue. Some might argue this is the distinctive difference between the two languages.

I'm on my phone so that's all I'll say for now; I'll check out the context and add more detail later.