2020-08-28 09:10:16 -05:00
|
|
|
error: using `.iter().next()` on an array
|
2023-07-02 07:35:19 -05:00
|
|
|
--> $DIR/iter_next_slice.rs:10:13
|
2020-06-09 09:36:01 -05:00
|
|
|
|
|
2022-03-26 10:19:47 -05:00
|
|
|
LL | let _ = s.iter().next();
|
2022-06-04 06:34:07 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try calling: `s.first()`
|
2020-06-09 09:36:01 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::iter-next-slice` implied by `-D warnings`
|
|
|
|
|
2020-08-28 09:10:16 -05:00
|
|
|
error: using `.iter().next()` on a Slice without end index
|
2023-07-02 07:35:19 -05:00
|
|
|
--> $DIR/iter_next_slice.rs:13:13
|
2020-06-09 09:36:01 -05:00
|
|
|
|
|
2022-03-26 10:19:47 -05:00
|
|
|
LL | let _ = s[2..].iter().next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: try calling: `s.get(2)`
|
2020-06-09 09:36:01 -05:00
|
|
|
|
2020-08-28 09:10:16 -05:00
|
|
|
error: using `.iter().next()` on a Slice without end index
|
2023-07-02 07:35:19 -05:00
|
|
|
--> $DIR/iter_next_slice.rs:16:13
|
2020-06-09 09:36:01 -05:00
|
|
|
|
|
2022-03-26 10:19:47 -05:00
|
|
|
LL | let _ = v[5..].iter().next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: try calling: `v.get(5)`
|
2020-06-09 09:36:01 -05:00
|
|
|
|
2020-08-28 09:10:16 -05:00
|
|
|
error: using `.iter().next()` on an array
|
2023-07-02 07:35:19 -05:00
|
|
|
--> $DIR/iter_next_slice.rs:19:13
|
2020-06-09 09:36:01 -05:00
|
|
|
|
|
2022-03-26 10:19:47 -05:00
|
|
|
LL | let _ = v.iter().next();
|
2022-06-04 06:34:07 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try calling: `v.first()`
|
2020-06-09 09:36:01 -05:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|