Rust for C++

Type deduction

Rust
let s1 = "hello";

let s2: &'static str = "hello";

Run

C++
auto s1 = "hello";

string s2 = "hello";

Run