]> git.lizzy.rs Git - rust.git/blob - tests/ui/search_is_some.stderr
c601f568c609bccf4cf3d7b9c60ac5f3823da45a
[rust.git] / tests / ui / search_is_some.stderr
1 error: called `is_some()` after searching an `Iterator` with `find`
2   --> $DIR/search_is_some.rs:13:13
3    |
4 LL |       let _ = v.iter().find(|&x| {
5    |  _____________^
6 LL | |                               *x < 0
7 LL | |                           }
8 LL | |                    ).is_some();
9    | |______________________________^
10    |
11    = note: `-D clippy::search-is-some` implied by `-D warnings`
12    = help: this is more succinctly expressed by calling `any()`
13
14 error: called `is_some()` after searching an `Iterator` with `position`
15   --> $DIR/search_is_some.rs:19:13
16    |
17 LL |       let _ = v.iter().position(|&x| {
18    |  _____________^
19 LL | |                                   x < 0
20 LL | |                               }
21 LL | |                    ).is_some();
22    | |______________________________^
23    |
24    = help: this is more succinctly expressed by calling `any()`
25
26 error: called `is_some()` after searching an `Iterator` with `rposition`
27   --> $DIR/search_is_some.rs:25:13
28    |
29 LL |       let _ = v.iter().rposition(|&x| {
30    |  _____________^
31 LL | |                                    x < 0
32 LL | |                                }
33 LL | |                    ).is_some();
34    | |______________________________^
35    |
36    = help: this is more succinctly expressed by calling `any()`
37
38 error: aborting due to 3 previous errors
39