2019-08-18 09:49:11 -05:00
|
|
|
error: this call to `map()` won't have an effect on the call to `count()`
|
2019-08-15 15:56:27 -05:00
|
|
|
--> $DIR/suspicious_map.rs:4:13
|
|
|
|
|
|
|
|
|
LL | let _ = (0..3).map(|x| x + 2).count();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::suspicious-map` implied by `-D warnings`
|
2021-10-05 14:03:13 -05:00
|
|
|
= help: make sure you did not confuse `map` with `filter`, `for_each` or `inspect`
|
2019-08-15 15:56:27 -05:00
|
|
|
|
2020-03-25 20:13:24 -05:00
|
|
|
error: this call to `map()` won't have an effect on the call to `count()`
|
|
|
|
--> $DIR/suspicious_map.rs:7:13
|
|
|
|
|
|
|
|
|
LL | let _ = (0..3).map(f).count();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-05 14:03:13 -05:00
|
|
|
= help: make sure you did not confuse `map` with `filter`, `for_each` or `inspect`
|
2020-03-25 20:13:24 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2019-08-15 15:56:27 -05:00
|
|
|
|