fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
766 B20 linesraw
1error: this call to `map()` won't have an effect on the call to `count()`
2  --> $DIR/suspicious_map.rs:4:13
3   |
4LL |     let _ = (0..3).map(|x| x + 2).count();
5   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = help: make sure you did not confuse `map` with `filter`, `for_each` or `inspect`
8   = note: `-D clippy::suspicious-map` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::suspicious_map)]`
10
11error: this call to `map()` won't have an effect on the call to `count()`
12  --> $DIR/suspicious_map.rs:8:13
13   |
14LL |     let _ = (0..3).map(f).count();
15   |             ^^^^^^^^^^^^^^^^^^^^^
16   |
17   = help: make sure you did not confuse `map` with `filter`, `for_each` or `inspect`
18
19error: aborting due to 2 previous errors
20