fn main() { let a: Vec = vec![1, 2, 3]; let mut b = a.clone(); // explicit element copy b.push(4); assert_eq!(a,[1,2,3]); assert_eq!(b,[1,2,3,4]); }