1 error: You appear to be counting bytes the naive way
2 --> $DIR/bytecount.rs:5:13
4 LL | let _ = x.iter().filter(|&&a| a == 0).count(); // naive byte count
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider using the bytecount crate: `bytecount::count(x, 0)`
7 note: the lint level is defined here
8 --> $DIR/bytecount.rs:1:8
10 LL | #[deny(clippy::naive_bytecount)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^
13 error: You appear to be counting bytes the naive way
14 --> $DIR/bytecount.rs:7:13
16 LL | 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:19:13
22 LL | 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