fn main() { let mut s = String::from("hello"); // 可变借用 let r1 = &mut s; r1.push_str(" world"); // 错误示例:不能同时存在多个可变借用 // let r2 = &mut s; // 编译错误 println!("{}", r1); }