fn main() { let a = String::from("data"); // clone makes an independent owned copy let b = a.clone(); // both a and b are usable println!("{a} {b}"); }
an explicit deep copy avoids the move