1 error: called `.bytes().nth()` on a `String`
2 --> $DIR/bytes_nth.rs:8:13
4 LL | let _ = s.bytes().nth(3);
5 | ^^^^^^^^^^^^^^^^ help: try: `s.as_bytes().get(3)`
7 = note: `-D clippy::bytes-nth` implied by `-D warnings`
9 error: called `.bytes().nth()` on a `String`
10 --> $DIR/bytes_nth.rs:9:14
12 LL | let _ = &s.bytes().nth(3);
13 | ^^^^^^^^^^^^^^^^ help: try: `s.as_bytes().get(3)`
15 error: called `.bytes().nth()` on a `str`
16 --> $DIR/bytes_nth.rs:10:13
18 LL | let _ = s[..].bytes().nth(3);
19 | ^^^^^^^^^^^^^^^^^^^^ help: try: `s[..].as_bytes().get(3)`
21 error: aborting due to 3 previous errors