]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/suspicious_map.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / suspicious_map.stderr
CommitLineData
f20569fa
XL
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 = note: `-D clippy::suspicious-map` implied by `-D warnings`
8 = help: make sure you did not confuse `map` with `filter` or `for_each`
9
cdc7bbd5
XL
10error: this call to `map()` won't have an effect on the call to `count()`
11 --> $DIR/suspicious_map.rs:7:13
12 |
13LL | let _ = (0..3).map(f).count();
14 | ^^^^^^^^^^^^^^^^^^^^^
15 |
16 = help: make sure you did not confuse `map` with `filter` or `for_each`
17
18error: aborting due to 2 previous errors
f20569fa 19