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 {
55 note: lint level defined here
56 --> $DIR/len_zero.rs:4:31
58 4 | #![deny(len_without_is_empty, len_zero)]
60 help: consider using `is_empty`
63 error: length comparison to zero
64 --> $DIR/len_zero.rs:137:8
66 137 | if "".len() == 0 {
69 help: consider using `is_empty`
72 error: length comparison to zero
73 --> $DIR/len_zero.rs:154:8
75 154 | if has_is_empty.len() == 0 {
76 | ^^^^^^^^^^^^^^^^^^^^^^^
78 help: consider using `is_empty`
79 | if has_is_empty.is_empty() {
81 error: length comparison to zero
82 --> $DIR/len_zero.rs:160:8
84 160 | if has_is_empty.len() != 0 {
85 | ^^^^^^^^^^^^^^^^^^^^^^^
87 help: consider using `is_empty`
88 | if !has_is_empty.is_empty() {
90 error: length comparison to zero
91 --> $DIR/len_zero.rs:166:8
93 166 | if has_is_empty.len() > 0 {
94 | ^^^^^^^^^^^^^^^^^^^^^^
96 help: consider using `is_empty`
97 | if !has_is_empty.is_empty() {
99 error: length comparison to zero
100 --> $DIR/len_zero.rs:175:8
102 175 | if with_is_empty.len() == 0 {
103 | ^^^^^^^^^^^^^^^^^^^^^^^^
105 help: consider using `is_empty`
106 | if with_is_empty.is_empty() {
108 error: length comparison to zero
109 --> $DIR/len_zero.rs:190:8
111 190 | if b.len() != 0 {
114 help: consider using `is_empty`
117 error: aborting due to 11 previous errors