need to read ownership stuff now.. stack heap inbound

This commit is contained in:
2026-06-16 16:14:10 +02:00
parent 82d4dd0235
commit 6baf967df0
4 changed files with 34 additions and 7 deletions
@@ -6,7 +6,9 @@ fn fill_vec(vec: Vec<i32>) -> Vec<i32> {
}
fn main() {
// You can optionally experiment here.
let vec0 = vec![22, 44, 66];
let vec1 = fill_vec(vec0);
println!("{:?}", vec1);
}
#[cfg(test)]