2019-08-18 16:49:11 +02:00
|
|
|
error: this call to `map()` won't have an effect on the call to `count()`
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/suspicious_map.rs:4:13
|
2019-08-15 22:56:27 +02:00
|
|
|
|
|
|
|
|
LL | let _ = (0..3).map(|x| x + 2).count();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-07 11:21:30 +02:00
|
|
|
= help: make sure you did not confuse `map` with `filter`, `for_each` or `inspect`
|
2022-09-22 20:04:22 +04:00
|
|
|
= note: `-D clippy::suspicious-map` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::suspicious_map)]`
|
2019-08-15 22:56:27 +02:00
|
|
|
|
2021-03-25 19:29:11 +01:00
|
|
|
error: this call to `map()` won't have an effect on the call to `count()`
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/suspicious_map.rs:8:13
|
2021-03-25 19:29:11 +01:00
|
|
|
|
|
|
|
|
LL | let _ = (0..3).map(f).count();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-07 11:21:30 +02:00
|
|
|
= help: make sure you did not confuse `map` with `filter`, `for_each` or `inspect`
|
2021-03-25 19:29:11 +01:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2019-08-15 22:56:27 +02:00
|
|
|
|