@@ -35,8 +35,14 @@ LL | | ).is_some();
35
35
|
36
36
= help: this is more succinctly expressed by calling `any()`
37
37
38
+ error: called `is_some()` after searching an `Iterator` with `find`
39
+ --> $DIR/search_is_some.rs:41:20
40
+ |
41
+ LL | let _ = (0..1).find(some_closure).is_some();
42
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `any()` instead: `any(some_closure)`
43
+
38
44
error: called `is_none()` after searching an `Iterator` with `find`
39
- --> $DIR/search_is_some.rs:48 :13
45
+ --> $DIR/search_is_some.rs:51 :13
40
46
|
41
47
LL | let _ = v.iter().find(|&x| {
42
48
| _____________^
@@ -48,7 +54,7 @@ LL | | ).is_none();
48
54
= help: this is more succinctly expressed by calling `any()` with negation
49
55
50
56
error: called `is_none()` after searching an `Iterator` with `position`
51
- --> $DIR/search_is_some.rs:54 :13
57
+ --> $DIR/search_is_some.rs:57 :13
52
58
|
53
59
LL | let _ = v.iter().position(|&x| {
54
60
| _____________^
@@ -60,7 +66,7 @@ LL | | ).is_none();
60
66
= help: this is more succinctly expressed by calling `any()` with negation
61
67
62
68
error: called `is_none()` after searching an `Iterator` with `rposition`
63
- --> $DIR/search_is_some.rs:60 :13
69
+ --> $DIR/search_is_some.rs:63 :13
64
70
|
65
71
LL | let _ = v.iter().rposition(|&x| {
66
72
| _____________^
@@ -71,5 +77,11 @@ LL | | ).is_none();
71
77
|
72
78
= help: this is more succinctly expressed by calling `any()` with negation
73
79
74
- error: aborting due to 6 previous errors
80
+ error: called `is_none()` after searching an `Iterator` with `find`
81
+ --> $DIR/search_is_some.rs:78:13
82
+ |
83
+ LL | let _ = (0..1).find(some_closure).is_none();
84
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `!_.any()` instead: `!(0..1).any(some_closure)`
85
+
86
+ error: aborting due to 8 previous errors
75
87
0 commit comments