1 error: item `PubOne` has a public `len` method but no corresponding `is_empty` method
2 --> $DIR/len_zero.rs:10:5
4 10 | pub fn len(self: &Self) -> isize {
5 | _____^ starting here...
8 | |_____^ ...ending here
10 note: lint level defined here
11 --> $DIR/len_zero.rs:4:9
13 4 | #![deny(len_without_is_empty, len_zero)]
14 | ^^^^^^^^^^^^^^^^^^^^
16 error: trait `PubTraitsToo` has a `len` method but no `is_empty` method
17 --> $DIR/len_zero.rs:32:5
19 32 | fn len(self: &Self) -> isize;
20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method
23 --> $DIR/len_zero.rs:66:5
25 66 | pub fn len(self: &Self) -> isize {
26 | _____^ starting here...
29 | |_____^ ...ending here
31 error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method
32 --> $DIR/len_zero.rs:95:5
34 95 | pub fn len(self: &Self) -> isize {
35 | _____^ starting here...
38 | |_____^ ...ending here
40 error: length comparison to zero
41 --> $DIR/len_zero.rs:106:8
43 106 | if x.len() == 0 {
46 note: lint level defined here
47 --> $DIR/len_zero.rs:4:31
49 4 | #![deny(len_without_is_empty, len_zero)]
51 help: consider using `is_empty`
54 error: length comparison to zero
55 --> $DIR/len_zero.rs:113:8
57 113 | if "".len() == 0 {
60 help: consider using `is_empty`
63 error: length comparison to zero
64 --> $DIR/len_zero.rs:130:8
66 130 | if has_is_empty.len() == 0 {
67 | ^^^^^^^^^^^^^^^^^^^^^^^
69 help: consider using `is_empty`
70 | if has_is_empty.is_empty() {
72 error: length comparison to zero
73 --> $DIR/len_zero.rs:136:8
75 136 | 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:142:8
84 142 | 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:151:8
93 151 | if with_is_empty.len() == 0 {
94 | ^^^^^^^^^^^^^^^^^^^^^^^^
96 help: consider using `is_empty`
97 | if with_is_empty.is_empty() {
99 error: aborting due to 10 previous errors