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: lint level defined here
12 --> $DIR/len_zero.rs:4:9
14 4 | #![deny(len_without_is_empty, len_zero)]
15 | ^^^^^^^^^^^^^^^^^^^^
17 error: trait `PubTraitsToo` has a `len` method but no `is_empty` method
18 --> $DIR/len_zero.rs:55:1
20 55 | / pub trait PubTraitsToo {
21 56 | | fn len(self: &Self) -> isize;
25 error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method
26 --> $DIR/len_zero.rs:89:1
28 89 | / impl HasIsEmpty {
29 90 | | pub fn len(self: &Self) -> isize {
37 error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method
38 --> $DIR/len_zero.rs:118:1
40 118 | / impl HasWrongIsEmpty {
41 119 | | pub fn len(self: &Self) -> isize {
49 error: length comparison to zero
50 --> $DIR/len_zero.rs:130:8
52 130 | if x.len() == 0 {
53 | ^^^^^^^^^^^^ help: using `is_empty` is more concise: `x.is_empty()`
55 note: lint level defined here
56 --> $DIR/len_zero.rs:4:31
58 4 | #![deny(len_without_is_empty, len_zero)]
61 error: length comparison to zero
62 --> $DIR/len_zero.rs:137:8
64 137 | if "".len() == 0 {
65 | ^^^^^^^^^^^^^ help: using `is_empty` is more concise: `"".is_empty()`
67 error: length comparison to zero
68 --> $DIR/len_zero.rs:154:8
70 154 | if has_is_empty.len() == 0 {
71 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `has_is_empty.is_empty()`
73 error: length comparison to zero
74 --> $DIR/len_zero.rs:160:8
76 160 | if has_is_empty.len() != 0 {
77 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()`
79 error: length comparison to zero
80 --> $DIR/len_zero.rs:166:8
82 166 | if has_is_empty.len() > 0 {
83 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()`
85 error: length comparison to zero
86 --> $DIR/len_zero.rs:175:8
88 175 | if with_is_empty.len() == 0 {
89 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `with_is_empty.is_empty()`
91 error: length comparison to zero
92 --> $DIR/len_zero.rs:190:8
94 190 | if b.len() != 0 {
95 | ^^^^^^^^^^^^ help: using `is_empty` is more concise: `!b.is_empty()`
97 error: aborting due to 11 previous errors