1 error: Using `.iter().next()` on an array
2 --> $DIR/iter_next_slice.rs:9:5
5 | ^^^^^^^^^^^^^^^ help: try calling: `s.get(0)`
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:5
12 LL | 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:5
18 LL | 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:5
25 | ^^^^^^^^^^^^^^^ help: try calling: `v.get(0)`
27 error: aborting due to 4 previous errors