Declare empty variable and assign to it later
examples/other/assign-later/src/main.rs
fn main() { let r; { r = "one"; } // r = "two"; // cannot assign twice to immutable variable `r` println!("r: {}", r); }
fn main() { let r; { r = "one"; } // r = "two"; // cannot assign twice to immutable variable `r` println!("r: {}", r); }