2019-03-26 20:21:36 +00:00
|
|
|
$ cargo run
|
|
|
|
Compiling iterators v0.1.0 (file:///projects/iterators)
|
2020-12-05 02:35:15 +00:00
|
|
|
warning: unused `Map` that must be used
|
2019-03-26 20:21:36 +00:00
|
|
|
--> src/main.rs:4:5
|
|
|
|
|
|
|
|
|
4 | v1.iter().map(|x| x + 1);
|
2023-02-10 16:01:09 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-03-26 20:21:36 +00:00
|
|
|
|
|
|
|
|
= note: iterators are lazy and do nothing unless consumed
|
2023-02-10 15:55:43 +00:00
|
|
|
= note: `#[warn(unused_must_use)]` on by default
|
2019-03-26 20:21:36 +00:00
|
|
|
|
2021-09-16 01:49:30 +00:00
|
|
|
warning: `iterators` (bin "iterators") generated 1 warning
|
2019-03-26 20:21:36 +00:00
|
|
|
Finished dev [unoptimized + debuginfo] target(s) in 0.47s
|
|
|
|
Running `target/debug/iterators`
|