Update move_semantics2.rs

This commit is contained in:
TimLai666 2024-07-03 12:25:38 +08:00 committed by GitHub
parent c77a18a147
commit b8c80e6415
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@
fn main() {
let vec0 = vec![22, 44, 66];
let vec1 = fill_vec(vec0.clone());
let vec1 = fill_vec(vec0);
assert_eq!(vec0, vec![22, 44, 66]);
assert_eq!(vec1, vec![22, 44, 66, 88]);