Move mutable string
examples/ownership/move-mutable-string/src/main.rs
fn main() { let name = String::from("Foo"); println!("{name}"); let other = name; println!("{other}"); // println!("{name}"); // value borrowed here after move }
fn main() { let name = String::from("Foo"); println!("{name}"); let other = name; println!("{other}"); // println!("{name}"); // value borrowed here after move }