Compare commits

...

2 commits

Author SHA1 Message Date
Parnav Harinathan f66b8c90bf
Merge 21b1e6ecf8 into 88b583f2bb 2023-11-29 17:41:56 +01:00
parnavh 21b1e6ecf8 fix(move_semantics): removed unused mut 2023-11-22 22:06:17 +05:30
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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