fn main() { let s = String::from("hello"); change(&s); } fn change(s: &String) { // s.push_str(", world"); // 错误:无法通过不可变引用修改数据 }