rust/tests/ui/suspicious_map.stderr
2019-08-15 22:58:32 +02:00

11 lines
301 B
Plaintext

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