]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/methods_fixable.stderr
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / tools / clippy / tests / ui / methods_fixable.stderr
1 error: called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead
2   --> $DIR/methods_fixable.rs:10:13
3    |
4 LL |     let _ = v.iter().filter(|&x| *x < 0).next();
5    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `v.iter().find(|&x| *x < 0)`
6    |
7    = note: `-D clippy::filter-next` implied by `-D warnings`
8
9 error: aborting due to previous error
10