mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 13:22:19 +08:00
9 lines
315 B
Plaintext
9 lines
315 B
Plaintext
|
$ cargo run
|
||
|
Compiling closure-example v0.1.0 (file:///projects/closure-example)
|
||
|
Finished dev [unoptimized + debuginfo] target(s) in 0.43s
|
||
|
Running `target/debug/closure-example`
|
||
|
Before defining closure: [1, 2, 3]
|
||
|
Before calling closure: [1, 2, 3]
|
||
|
From closure: [1, 2, 3]
|
||
|
After calling closure: [1, 2, 3]
|