1 error: item `PubOne` has a public `len` method but no corresponding `is_empty` method
2 --> $DIR/len_without_is_empty.rs:6:1
5 LL | | pub fn len(&self) -> isize {
11 = note: `-D clippy::len-without-is-empty` implied by `-D warnings`
13 error: trait `PubTraitsToo` has a `len` method but no (possibly inherited) `is_empty` method
14 --> $DIR/len_without_is_empty.rs:37:1
16 LL | / pub trait PubTraitsToo {
17 LL | | fn len(&self) -> isize;
21 error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method
22 --> $DIR/len_without_is_empty.rs:49:1
24 LL | / impl HasIsEmpty {
25 LL | | pub fn len(&self) -> isize {
33 error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method
34 --> $DIR/len_without_is_empty.rs:61:1
36 LL | / impl HasWrongIsEmpty {
37 LL | | pub fn len(&self) -> isize {
45 error: trait `DependsOnFoo` has a `len` method but no (possibly inherited) `is_empty` method
46 --> $DIR/len_without_is_empty.rs:141:1
48 LL | / pub trait DependsOnFoo: Foo {
49 LL | | fn len(&mut self) -> usize;
53 error: aborting due to 5 previous errors