The cost will be higher, and the C++ standard libs are not exactly lean. Rust's semantics mean that it has to drag around a bunch of metadata and do all these extra checks all over the place. Take a look at the disassembly on godbolt sometime. Tons of extra junk getting secretly passed around.