blob: ce0ad5e37ff267ae28ebd8e16407b789d9f9ef22 (
plain)
1
2
3
4
5
6
|
$ 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]
After calling closure: [1, 2, 3, 7]
|