RAII in C++ is optional and not enforced everywhere. It certainly helps if you use it. In Rust you can't turn it off.