Learning about vectors

This commit is contained in:
Nidhal Messaoudi
2023-02-27 21:16:40 +01:00
parent f7678b4a9e
commit e3a20b8bc8
5 changed files with 9 additions and 19 deletions

View File

@@ -1,12 +1,10 @@
// move_semantics1.rs
// Execute `rustlings hint move_semantics1` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
fn main() {
let vec0 = Vec::new();
let vec1 = fill_vec(vec0);
let mut vec1 = fill_vec(vec0);
println!("{} has length {} content `{:?}`", "vec1", vec1.len(), vec1);