mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-11 21:29:18 +00:00
added(move_semantics): first possible solution, but no idea how to solve it differently ;///////////
This commit is contained in:
parent
558dacfa2b
commit
fa90ef60ee
@ -9,6 +9,7 @@ fn main() {
|
|||||||
|
|
||||||
let mut vec1 = fill_vec(vec0);
|
let mut vec1 = fill_vec(vec0);
|
||||||
|
|
||||||
|
let vec0 = vec1.clone();
|
||||||
// Do not change the following line!
|
// Do not change the following line!
|
||||||
println!("{} has length {} content `{:?}`", "vec0", vec0.len(), vec0);
|
println!("{} has length {} content `{:?}`", "vec0", vec0.len(), vec0);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user