1 error: You appear to be counting bytes the naive way
2 --> $DIR/bytecount.rs:18:13
4 18 | let _ = x.iter().filter(|&&a| a == 0).count(); // naive byte count
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider using the bytecount crate: `bytecount::count(x, 0)`
7 note: lint level defined here
8 --> $DIR/bytecount.rs:14:8
10 14 | #[deny(clippy::naive_bytecount)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^
13 error: You appear to be counting bytes the naive way
14 --> $DIR/bytecount.rs:20:13
16 20 | let _ = (&x[..]).iter().filter(|&a| *a == 0).count(); // naive byte count
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider using the bytecount crate: `bytecount::count((&x[..]), 0)`
19 error: You appear to be counting bytes the naive way
20 --> $DIR/bytecount.rs:32:13
22 32 | let _ = x.iter().filter(|a| b + 1 == **a).count(); // naive byte count
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider using the bytecount crate: `bytecount::count(x, b + 1)`
25 error: aborting due to 3 previous errors