1 error: called `skip(..).next()` on an iterator
2 --> $DIR/iter_skip_next_unfixable.rs:9:26
4 LL | let _: Vec<&str> = sp.skip(1).next().unwrap().split(' ').collect();
5 | ^^^^^^^^^^^^^^^ help: use `nth` instead: `.nth(1)`
7 = note: `-D clippy::iter-skip-next` implied by `-D warnings`
8 help: for this change `sp` has to be mutable
9 --> $DIR/iter_skip_next_unfixable.rs:8:9
11 LL | let sp = test_string.split('|').map(|s| s.trim());
14 error: called `skip(..).next()` on an iterator
15 --> $DIR/iter_skip_next_unfixable.rs:11:29
17 LL | let _: Vec<&str> = s.skip(1).next().unwrap().split(' ').collect();
18 | ^^^^^^^^^^^^^^^ help: use `nth` instead: `.nth(1)`
20 help: for this change `s` has to be mutable
21 --> $DIR/iter_skip_next_unfixable.rs:10:17
23 LL | if let Some(s) = Some(test_string.split('|').map(|s| s.trim())) {
26 error: called `skip(..).next()` on an iterator
27 --> $DIR/iter_skip_next_unfixable.rs:17:29
29 LL | let _: Vec<&str> = s.skip(1).next().unwrap().split(' ').collect();
30 | ^^^^^^^^^^^^^^^ help: use `nth` instead: `.nth(1)`
32 help: for this change `s` has to be mutable
33 --> $DIR/iter_skip_next_unfixable.rs:13:17
35 LL | fn check<T>(s: T)
38 error: aborting due to 3 previous errors