mirror of https://github.com/KaiserY/trpl-zh-cn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
178 B
10 lines
178 B
3 years ago
|
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
|
||
|
}
|