mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 21:32:15 +08:00
10 lines
178 B
Rust
Executable File
10 lines
178 B
Rust
Executable File
fn main() {
|
|
// ANCHOR: here
|
|
{
|
|
let v = vec![1, 2, 3, 4];
|
|
|
|
// do stuff with v
|
|
} // <- v goes out of scope and is freed here
|
|
// ANCHOR_END: here
|
|
}
|