6 lines
146 B
Text
6 lines
146 B
Text
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);
|
|
}
|