1 error: called `.iter().nth()` on a Vec
2 --> $DIR/iter_nth.rs:33:23
4 LL | let bad_vec = some_vec.iter().nth(3);
5 | ^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::iter-nth` implied by `-D warnings`
8 = help: calling `.get()` is both faster and more readable
10 error: called `.iter().nth()` on a slice
11 --> $DIR/iter_nth.rs:34:26
13 LL | let bad_slice = &some_vec[..].iter().nth(3);
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
16 = help: calling `.get()` is both faster and more readable
18 error: called `.iter().nth()` on a slice
19 --> $DIR/iter_nth.rs:35:31
21 LL | let bad_boxed_slice = boxed_slice.iter().nth(3);
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^
24 = help: calling `.get()` is both faster and more readable
26 error: called `.iter().nth()` on a VecDeque
27 --> $DIR/iter_nth.rs:36:29
29 LL | let bad_vec_deque = some_vec_deque.iter().nth(3);
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 = help: calling `.get()` is both faster and more readable
34 error: called `.iter_mut().nth()` on a Vec
35 --> $DIR/iter_nth.rs:41:23
37 LL | let bad_vec = some_vec.iter_mut().nth(3);
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
40 = help: calling `.get_mut()` is both faster and more readable
42 error: called `.iter_mut().nth()` on a slice
43 --> $DIR/iter_nth.rs:44:26
45 LL | let bad_slice = &some_vec[..].iter_mut().nth(3);
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 = help: calling `.get_mut()` is both faster and more readable
50 error: called `.iter_mut().nth()` on a VecDeque
51 --> $DIR/iter_nth.rs:47:29
53 LL | let bad_vec_deque = some_vec_deque.iter_mut().nth(3);
54 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56 = help: calling `.get_mut()` is both faster and more readable
58 error: aborting due to 7 previous errors