]> git.lizzy.rs Git - rust.git/blob - tests/ui/suspicious_map.stderr
Add ui test
[rust.git] / tests / ui / suspicious_map.stderr
1 error: Make sure you did not confuse `map` with `filter`.
2   --> $DIR/suspicious_map.rs:4:13
3    |
4 LL |     let _ = (0..3).map(|x| x + 2).count();
5    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::suspicious-map` implied by `-D warnings`
8
9 error: aborting due to previous error
10