1 error: using `.iter().next()` on an array
2 --> $DIR/iter_next_slice.rs:9:13
4 LL | let _ = s.iter().next();
5 | ^^^^^^^^^^^^^^^ help: try calling: `s.first()`
7 = note: `-D clippy::iter-next-slice` implied by `-D warnings`
9 error: using `.iter().next()` on a Slice without end index
10 --> $DIR/iter_next_slice.rs:12:13
12 LL | let _ = s[2..].iter().next();
13 | ^^^^^^^^^^^^^^^^^^^^ help: try calling: `s.get(2)`
15 error: using `.iter().next()` on a Slice without end index
16 --> $DIR/iter_next_slice.rs:15:13
18 LL | let _ = v[5..].iter().next();
19 | ^^^^^^^^^^^^^^^^^^^^ help: try calling: `v.get(5)`
21 error: using `.iter().next()` on an array
22 --> $DIR/iter_next_slice.rs:18:13
24 LL | let _ = v.iter().next();
25 | ^^^^^^^^^^^^^^^ help: try calling: `v.first()`
27 error: aborting due to 4 previous errors