mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 21:32:15 +08:00
14 lines
224 B
Rust
Executable File
14 lines
224 B
Rust
Executable File
fn main() {
|
|
// ANCHOR: here
|
|
let mut stack = Vec::new();
|
|
|
|
stack.push(1);
|
|
stack.push(2);
|
|
stack.push(3);
|
|
|
|
while let Some(top) = stack.pop() {
|
|
println!("{}", top);
|
|
}
|
|
// ANCHOR_END: here
|
|
}
|