logoalt Hacker News

gf000last Sunday at 8:34 PM0 repliesview on HN

And in Rust, it will enforce correct usage via the borrow checker - the outlive case simply will not compile.

If you do want it, you have the option to, say, heap allocate.