about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/suspicious_map.stderr
blob: 769adebaede7cc9cf90673728e7621545db8b894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: this call to `map()` won't have an effect on the call to `count()`
  --> tests/ui/suspicious_map.rs:5:13
   |
LL |     let _ = (0..3).map(|x| x + 2).count();
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: make sure you did not confuse `map` with `filter`, `for_each` or `inspect`
   = note: `-D clippy::suspicious-map` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::suspicious_map)]`

error: this call to `map()` won't have an effect on the call to `count()`
  --> tests/ui/suspicious_map.rs:9:13
   |
LL |     let _ = (0..3).map(f).count();
   |             ^^^^^^^^^^^^^^^^^^^^^
   |
   = help: make sure you did not confuse `map` with `filter`, `for_each` or `inspect`

error: aborting due to 2 previous errors