C++ is inferior, but also older and better known, easier to hire competent people TODAY. 20 years, c++ maintenance will be a big industry, but AI CODEX (combined with fuzzers and auto regression) could also probably accurately transpile & test a lot c++ accelerating this.
Rust is integral to the EXCITING aspects of the linux kernel such as ebpf w/ io-uring that will eat modern k8 and other ecosystems like a blackhole. These are billion dollar markets that will principally disappear due to the kernel abstracting & obviating the need for them. Companies will move on for the security aspect, unfortunately because new threats require attention.
Rust devs & shops will spend a a significantly smaller fraction of their time troubleshooting code in the field & on smaller more efficient devices and certainly have less security issues as well. C++ will still exist in 20 years, but will be not in vogue. Anybody who thinks rust is hard clearly hasnt attempted c++ imho.
Typescript, python will also remain popular for other reasons.