]> git.lizzy.rs Git - rust.git/blob - tests/ui/len_without_is_empty.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / len_without_is_empty.stderr
1 error: item `PubOne` has a public `len` method but no corresponding `is_empty` method
2   --> $DIR/len_without_is_empty.rs:6:1
3    |
4 LL | / impl PubOne {
5 LL | |     pub fn len(self: &Self) -> isize {
6 LL | |         1
7 LL | |     }
8 LL | | }
9    | |_^
10    |
11    = note: `-D clippy::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_without_is_empty.rs:37:1
15    |
16 LL | / pub trait PubTraitsToo {
17 LL | |     fn len(self: &Self) -> isize;
18 LL | | }
19    | |_^
20
21 error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method
22   --> $DIR/len_without_is_empty.rs:49:1
23    |
24 LL | / impl HasIsEmpty {
25 LL | |     pub fn len(self: &Self) -> isize {
26 LL | |         1
27 LL | |     }
28 ...  |
29 LL | |     }
30 LL | | }
31    | |_^
32
33 error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method
34   --> $DIR/len_without_is_empty.rs:61:1
35    |
36 LL | / impl HasWrongIsEmpty {
37 LL | |     pub fn len(self: &Self) -> isize {
38 LL | |         1
39 LL | |     }
40 ...  |
41 LL | |     }
42 LL | | }
43    | |_^
44
45 error: trait `DependsOnFoo` has a `len` method but no (possibly inherited) `is_empty` method
46   --> $DIR/len_without_is_empty.rs:141:1
47    |
48 LL | / pub trait DependsOnFoo: Foo {
49 LL | |     fn len(&mut self) -> usize;
50 LL | | }
51    | |_^
52
53 error: aborting due to 5 previous errors
54