News for hackers. Stuff that matters.
Re:Welcome to Comprehensive Rust by jamincan on Thursday December 22, 2022 @08:33AM (#34093029)
The Rust Book has an example: https://doc.rust-lang.org/book/ch15-06-reference-cycles.html

Of course, leaking memory is as easy as using `Box::leak`, although that's probably never going to happen accidentally.

There are no comments on this comment yet.