fn main() { let mut a="Anna".to_owned(); let mut b="Bob".to_owned(); std::mem::swap(&mut a, &mut b); println!("a={},b={}",a,b); }