1 error: item `PubOne` has a public `len` method but no corresponding `is_empty` method
2 --> $DIR/len_zero.rs:9:1
5 10 | | pub fn len(self: &Self) -> isize {
11 = note: `-D 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_zero.rs:55:1
16 55 | / pub trait PubTraitsToo {
17 56 | | fn len(self: &Self) -> isize;
21 error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method
22 --> $DIR/len_zero.rs:89:1
24 89 | / impl HasIsEmpty {
25 90 | | pub fn len(self: &Self) -> isize {
33 error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method
34 --> $DIR/len_zero.rs:118:1
36 118 | / impl HasWrongIsEmpty {
37 119 | | pub fn len(self: &Self) -> isize {
45 error: length comparison to zero
46 --> $DIR/len_zero.rs:140:8
48 140 | if x.len() == 0 {
49 | ^^^^^^^^^^^^ help: using `is_empty` is more concise: `x.is_empty()`
51 = note: `-D len-zero` implied by `-D warnings`
53 error: length comparison to zero
54 --> $DIR/len_zero.rs:144:8
56 144 | if "".len() == 0 {
57 | ^^^^^^^^^^^^^ help: using `is_empty` is more concise: `"".is_empty()`
59 error: length comparison to zero
60 --> $DIR/len_zero.rs:158:8
62 158 | if has_is_empty.len() == 0 {
63 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `has_is_empty.is_empty()`
65 error: length comparison to zero
66 --> $DIR/len_zero.rs:161:8
68 161 | if has_is_empty.len() != 0 {
69 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()`
71 error: length comparison to zero
72 --> $DIR/len_zero.rs:164:8
74 164 | if has_is_empty.len() > 0 {
75 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()`
77 error: length comparison to zero
78 --> $DIR/len_zero.rs:170:8
80 170 | if with_is_empty.len() == 0 {
81 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `with_is_empty.is_empty()`
83 error: length comparison to zero
84 --> $DIR/len_zero.rs:182:8
86 182 | if b.len() != 0 {
87 | ^^^^^^^^^^^^ help: using `is_empty` is more concise: `!b.is_empty()`
89 error: aborting due to 11 previous errors