1 error: item `PubOne` has a public `len` method but no corresponding `is_empty` method
2 --> $DIR/len_zero.rs:9:1
6 10 | | pub fn len(self: &Self) -> isize {
12 note: lint level defined here
13 --> $DIR/len_zero.rs:4:9
15 4 | #![deny(len_without_is_empty, len_zero)]
16 | ^^^^^^^^^^^^^^^^^^^^
18 error: trait `PubTraitsToo` has a `len` method but no `is_empty` method
19 --> $DIR/len_zero.rs:55:1
21 55 | pub trait PubTraitsToo {
23 56 | | fn len(self: &Self) -> isize;
27 error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method
28 --> $DIR/len_zero.rs:89:1
30 89 | impl HasIsEmpty {
32 90 | | pub fn len(self: &Self) -> isize {
36 94 | | fn is_empty(self: &Self) -> bool {
42 error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method
43 --> $DIR/len_zero.rs:118:1
45 118 | impl HasWrongIsEmpty {
47 119 | | pub fn len(self: &Self) -> isize {
51 123 | | pub fn is_empty(self: &Self, x : u32) -> bool {
57 error: length comparison to zero
58 --> $DIR/len_zero.rs:130:8
60 130 | if x.len() == 0 {
63 note: lint level defined here
64 --> $DIR/len_zero.rs:4:31
66 4 | #![deny(len_without_is_empty, len_zero)]
68 help: consider using `is_empty`
71 error: length comparison to zero
72 --> $DIR/len_zero.rs:137:8
74 137 | if "".len() == 0 {
77 help: consider using `is_empty`
80 error: length comparison to zero
81 --> $DIR/len_zero.rs:154:8
83 154 | if has_is_empty.len() == 0 {
84 | ^^^^^^^^^^^^^^^^^^^^^^^
86 help: consider using `is_empty`
87 | if has_is_empty.is_empty() {
89 error: length comparison to zero
90 --> $DIR/len_zero.rs:160:8
92 160 | if has_is_empty.len() != 0 {
93 | ^^^^^^^^^^^^^^^^^^^^^^^
95 help: consider using `is_empty`
96 | if !has_is_empty.is_empty() {
98 error: length comparison to zero
99 --> $DIR/len_zero.rs:166:8
101 166 | if has_is_empty.len() > 0 {
102 | ^^^^^^^^^^^^^^^^^^^^^^
104 help: consider using `is_empty`
105 | if !has_is_empty.is_empty() {
107 error: length comparison to zero
108 --> $DIR/len_zero.rs:175:8
110 175 | if with_is_empty.len() == 0 {
111 | ^^^^^^^^^^^^^^^^^^^^^^^^
113 help: consider using `is_empty`
114 | if with_is_empty.is_empty() {
116 error: aborting due to 10 previous errors