]>
Commit | Line | Data |
---|---|---|
ea8adc8c XL |
1 | error: item `PubOne` has a public `len` method but no corresponding `is_empty` method |
2 | --> $DIR/len_zero.rs:9:1 | |
3 | | | |
4 | 9 | / impl PubOne { | |
5 | 10 | | pub fn len(self: &Self) -> isize { | |
6 | 11 | | 1 | |
7 | 12 | | } | |
8 | 13 | | } | |
9 | | |_^ | |
10 | | | |
11 | = note: `-D len-without-is-empty` implied by `-D warnings` | |
12 | ||
13 | error: trait `PubTraitsToo` has a `len` method but no (possibly inherited) `is_empty` method | |
14 | --> $DIR/len_zero.rs:55:1 | |
15 | | | |
16 | 55 | / pub trait PubTraitsToo { | |
17 | 56 | | fn len(self: &Self) -> isize; | |
18 | 57 | | } | |
19 | | |_^ | |
20 | ||
21 | error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method | |
22 | --> $DIR/len_zero.rs:89:1 | |
23 | | | |
24 | 89 | / impl HasIsEmpty { | |
25 | 90 | | pub fn len(self: &Self) -> isize { | |
26 | 91 | | 1 | |
27 | 92 | | } | |
28 | ... | | |
29 | 96 | | } | |
30 | 97 | | } | |
31 | | |_^ | |
32 | ||
33 | error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method | |
34 | --> $DIR/len_zero.rs:118:1 | |
35 | | | |
36 | 118 | / impl HasWrongIsEmpty { | |
37 | 119 | | pub fn len(self: &Self) -> isize { | |
38 | 120 | | 1 | |
39 | 121 | | } | |
40 | ... | | |
41 | 125 | | } | |
42 | 126 | | } | |
43 | | |_^ | |
44 | ||
45 | error: length comparison to zero | |
46 | --> $DIR/len_zero.rs:140:8 | |
47 | | | |
48 | 140 | if x.len() == 0 { | |
49 | | ^^^^^^^^^^^^ help: using `is_empty` is more concise: `x.is_empty()` | |
50 | | | |
51 | = note: `-D len-zero` implied by `-D warnings` | |
52 | ||
53 | error: length comparison to zero | |
54 | --> $DIR/len_zero.rs:144:8 | |
55 | | | |
56 | 144 | if "".len() == 0 { | |
57 | | ^^^^^^^^^^^^^ help: using `is_empty` is more concise: `"".is_empty()` | |
58 | ||
59 | error: length comparison to zero | |
60 | --> $DIR/len_zero.rs:158:8 | |
61 | | | |
62 | 158 | if has_is_empty.len() == 0 { | |
63 | | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `has_is_empty.is_empty()` | |
64 | ||
65 | error: length comparison to zero | |
66 | --> $DIR/len_zero.rs:161:8 | |
67 | | | |
68 | 161 | if has_is_empty.len() != 0 { | |
69 | | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()` | |
70 | ||
71 | error: length comparison to zero | |
72 | --> $DIR/len_zero.rs:164:8 | |
73 | | | |
74 | 164 | if has_is_empty.len() > 0 { | |
75 | | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()` | |
76 | ||
77 | error: length comparison to zero | |
78 | --> $DIR/len_zero.rs:170:8 | |
79 | | | |
80 | 170 | if with_is_empty.len() == 0 { | |
81 | | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `with_is_empty.is_empty()` | |
82 | ||
83 | error: length comparison to zero | |
84 | --> $DIR/len_zero.rs:182:8 | |
85 | | | |
86 | 182 | if b.len() != 0 { | |
87 | | ^^^^^^^^^^^^ help: using `is_empty` is more concise: `!b.is_empty()` | |
88 | ||
abe05a73 XL |
89 | error: trait `DependsOnFoo` has a `len` method but no (possibly inherited) `is_empty` method |
90 | --> $DIR/len_zero.rs:189:1 | |
91 | | | |
92 | 189 | / pub trait DependsOnFoo: Foo { | |
93 | 190 | | fn len(&mut self) -> usize; | |
94 | 191 | | } | |
95 | | |_^ | |
ea8adc8c | 96 | |
2c00a5a8 XL |
97 | error: aborting due to 12 previous errors |
98 |