]> git.lizzy.rs Git - rust.git/blob - tests/ui/methods_fixable.stderr
Move MSRV tests into the lint specific test files
[rust.git] / 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