mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
11 lines
301 B
Plaintext
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
|
||
|
|