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