1 fn main() { 2 { 3 let v = vec![1, 2, 3, 4]; 4 5 // do stuff with v 6 } // <- v goes out of scope and is freed here 7 8 }