let v = vec![String::from("hello"), String::from("world")]; let first = &v[0]; // v.push(String::from("!")); // 错误:不能同时存在可变引用和不可变引用 println!("{}", first);