2022-02-06 16:43:51 +08:00
|
|
|
fn main() {
|
|
|
|
// ANCHOR: here
|
2023-01-16 17:34:52 +08:00
|
|
|
{
|
|
|
|
let v = vec![1, 2, 3, 4];
|
2022-02-06 16:43:51 +08:00
|
|
|
|
2023-01-16 17:34:52 +08:00
|
|
|
// do stuff with v
|
|
|
|
} // <- v goes out of scope and is freed here
|
|
|
|
// ANCHOR_END: here
|
2022-02-06 16:43:51 +08:00
|
|
|
}
|