mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2024-11-14 21:11:31 +08:00
15 lines
479 B
Plaintext
Executable File
15 lines
479 B
Plaintext
Executable File
$ cargo run
|
|
Compiling iterators v0.1.0 (file:///projects/iterators)
|
|
warning: unused `Map` that must be used
|
|
--> src/main.rs:4:5
|
|
|
|
|
4 | v1.iter().map(|x| x + 1);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `#[warn(unused_must_use)]` on by default
|
|
= note: iterators are lazy and do nothing unless consumed
|
|
|
|
warning: `iterators` (bin "iterators") generated 1 warning
|
|
Finished dev [unoptimized + debuginfo] target(s) in 0.47s
|
|
Running `target/debug/iterators`
|