C++ pitfalls hard to avoid that are elegantly managed in Rust

Here's something I wrote on the subject in another thread: