mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
10 lines
301 B
Text
10 lines
301 B
Text
error: Make sure you did not confuse `map` with `filter`.
|
|
--> $DIR/suspicious_map.rs:4:13
|
|
|
|
|
LL | let _ = (0..3).map(|x| x + 2).count();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::suspicious-map` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|