]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/len_without_is_empty.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / len_without_is_empty.stderr
CommitLineData
f20569fa
XL
1error: struct `PubOne` has a public `len` method, but no `is_empty` method
2 --> $DIR/len_without_is_empty.rs:7:5
3 |
4LL | pub fn len(&self) -> isize {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `-D clippy::len-without-is-empty` implied by `-D warnings`
8
9error: trait `PubTraitsToo` has a `len` method but no (possibly inherited) `is_empty` method
10 --> $DIR/len_without_is_empty.rs:55:1
11 |
12LL | / pub trait PubTraitsToo {
13LL | | fn len(&self) -> isize;
14LL | | }
15 | |_^
16
17error: struct `HasIsEmpty` has a public `len` method, but a private `is_empty` method
18 --> $DIR/len_without_is_empty.rs:68:5
19 |
20LL | pub fn len(&self) -> isize {
21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
22 |
23note: `is_empty` defined here
24 --> $DIR/len_without_is_empty.rs:72:5
25 |
26LL | fn is_empty(&self) -> bool {
27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
28
29error: struct `HasWrongIsEmpty` has a public `len` method, but the `is_empty` method has an unexpected signature
30 --> $DIR/len_without_is_empty.rs:80:5
31 |
32LL | pub fn len(&self) -> isize {
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
34 |
35note: `is_empty` defined here
36 --> $DIR/len_without_is_empty.rs:84:5
37 |
38LL | pub fn is_empty(&self, x: u32) -> bool {
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 = note: expected signature: `(&self) -> bool`
41
42error: struct `MismatchedSelf` has a public `len` method, but the `is_empty` method has an unexpected signature
43 --> $DIR/len_without_is_empty.rs:92:5
44 |
45LL | pub fn len(self) -> isize {
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^
47 |
48note: `is_empty` defined here
49 --> $DIR/len_without_is_empty.rs:96:5
50 |
51LL | pub fn is_empty(&self) -> bool {
52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53 = note: expected signature: `(self) -> bool`
54
55error: trait `DependsOnFoo` has a `len` method but no (possibly inherited) `is_empty` method
56 --> $DIR/len_without_is_empty.rs:171:1
57 |
58LL | / pub trait DependsOnFoo: Foo {
59LL | | fn len(&mut self) -> usize;
60LL | | }
61 | |_^
62
63error: aborting due to 6 previous errors
64