Oddbean new post about | logout
 You can accomplish the same using smart pointers in c++ although rust's way is less error prone.
I don't get what you mean with "enforced at compile time". The lifetime of an object can't be known at compile time (unless the object is static obviously).
Do you mean more like "it's enforced that the compiler's codegen will enforce the lifetimes are coupled during runtime"?