mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-02-02 23:38:41 +08:00
9 lines
288 B
Plaintext
9 lines
288 B
Plaintext
|
$ cargo run
|
||
|
Compiling cons-list v0.1.0 (file:///projects/cons-list)
|
||
|
Finished dev [unoptimized + debuginfo] target(s) in 0.45s
|
||
|
Running `target/debug/cons-list`
|
||
|
count after creating a = 1
|
||
|
count after creating b = 2
|
||
|
count after creating c = 3
|
||
|
count after c goes out of scope = 2
|