rust/tests/ui/suspicious_map.stderr

12 lines
378 B
Plaintext
Raw Normal View History

2019-08-18 22:49:11 +08:00
error: this call to `map()` won't have an effect on the call to `count()`
2019-08-16 04:56:27 +08: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`
2019-08-18 22:49:11 +08:00
= help: make sure you did not confuse `map` with `filter`
2019-08-16 04:56:27 +08:00
error: aborting due to previous error