]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/methods_fixable.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / methods_fixable.stderr
CommitLineData
f20569fa
XL
1error: called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead
2 --> $DIR/methods_fixable.rs:10:13
3 |
4LL | 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
9error: aborting due to previous error
10