book/listings/ch13-functional-features/listing-13-14/output.txt

15 lines
478 B
Plaintext
Raw Normal View History

$ 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
--> src/main.rs:4:5
|
4 | v1.iter().map(|x| x + 1);
2023-02-10 16:01:09 +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
2021-09-16 01:49:30 +00:00
warning: `iterators` (bin "iterators") generated 1 warning
Finished dev [unoptimized + debuginfo] target(s) in 0.47s
Running `target/debug/iterators`