2020-11-05 13:29:48 +00:00
|
|
|
error: called `skip_while(<p>).next()` on an `Iterator`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/skip_while_next.rs:14:13
|
2020-01-20 01:54:54 +00:00
|
|
|
|
|
|
|
|
LL | let _ = v.iter().skip_while(|&x| *x < 0).next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-11-05 13:29:48 +00:00
|
|
|
= help: this is more succinctly expressed by calling `.find(!<p>)` instead
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::skip-while-next` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::skip_while_next)]`
|
2020-01-20 01:54:54 +00:00
|
|
|
|
2020-11-05 13:29:48 +00:00
|
|
|
error: called `skip_while(<p>).next()` on an `Iterator`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/skip_while_next.rs:17:13
|
2020-01-20 01:54:54 +00:00
|
|
|
|
|
|
|
|
LL | let _ = v.iter().skip_while(|&x| {
|
|
|
|
| _____________^
|
|
|
|
LL | | *x < 0
|
|
|
|
LL | | }
|
|
|
|
LL | | ).next();
|
|
|
|
| |___________________________^
|
2020-01-20 12:07:31 +00:00
|
|
|
|
|
2020-11-05 13:29:48 +00:00
|
|
|
= help: this is more succinctly expressed by calling `.find(!<p>)` instead
|
2020-01-20 01:54:54 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|