You can write bad unsafe code in any language. Rust has a convenient keyword for that. C++ has types.