Rust has generic lifetime annotations.
Validating References with Lifetimes - The Rust Programming Language
…this returns a compiler error, because variable x
does not live long enough, even though r
is a valid value.
Search
Rust has generic lifetime annotations.
Validating References with Lifetimes - The Rust Programming Language
…this returns a compiler error, because variable x
does not live long enough, even though r
is a valid value.