Hacker News new | ask | show | jobs
by RcouF1uZ4gsC 1402 days ago
> and using the guarantees of Rust is guaranteed not to crash the VM or leak memory.

Very interesting article.

However, I do no think that Rust guarantees not to leak memory. It guarantees to double frees or dangling pointers, but it does not guarantee no leaks. One example would be making a cycle using Rc.

1 comments

It's even easier than that, just use Box::leak.