]> git.lizzy.rs Git - rust.git/blob - tests/ui/search_is_some.stderr
Ran `tests/ui/update-all-references.sh" and `cargo dev fmt`
[rust.git] / tests / ui / search_is_some.stderr
1 error: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`.
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
13 error: called `is_some()` after searching an `Iterator` with position. This is more succinctly expressed by calling `any()`.
14   --> $DIR/search_is_some.rs:19:13
15    |
16 LL |       let _ = v.iter().position(|&x| {
17    |  _____________^
18 LL | |                                   x < 0
19 LL | |                               }
20 LL | |                    ).is_some();
21    | |______________________________^
22
23 error: called `is_some()` after searching an `Iterator` with rposition. This is more succinctly expressed by calling `any()`.
24   --> $DIR/search_is_some.rs:25:13
25    |
26 LL |       let _ = v.iter().rposition(|&x| {
27    |  _____________^
28 LL | |                                    x < 0
29 LL | |                                }
30 LL | |                    ).is_some();
31    | |______________________________^
32
33 error: use of a blacklisted/placeholder name `foo`
34   --> $DIR/search_is_some.rs:31:9
35    |
36 LL |     let foo = IteratorFalsePositives { foo: 0 };
37    |         ^^^
38    |
39    = note: `-D clippy::blacklisted-name` implied by `-D warnings`
40
41 error: aborting due to 4 previous errors
42