]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/unused_self.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / unused_self.stderr
CommitLineData
f20569fa
XL
1error: unused `self` argument
2 --> $DIR/unused_self.rs:11:29
3 |
4LL | fn unused_self_move(self) {}
5 | ^^^^
6 |
7 = note: `-D clippy::unused-self` implied by `-D warnings`
8 = help: consider refactoring to a associated function
9
10error: unused `self` argument
11 --> $DIR/unused_self.rs:12:28
12 |
13LL | fn unused_self_ref(&self) {}
14 | ^^^^^
15 |
16 = help: consider refactoring to a associated function
17
18error: unused `self` argument
19 --> $DIR/unused_self.rs:13:32
20 |
21LL | fn unused_self_mut_ref(&mut self) {}
22 | ^^^^^^^^^
23 |
24 = help: consider refactoring to a associated function
25
26error: unused `self` argument
27 --> $DIR/unused_self.rs:14:32
28 |
29LL | fn unused_self_pin_ref(self: Pin<&Self>) {}
30 | ^^^^
31 |
32 = help: consider refactoring to a associated function
33
34error: unused `self` argument
35 --> $DIR/unused_self.rs:15:36
36 |
37LL | fn unused_self_pin_mut_ref(self: Pin<&mut Self>) {}
38 | ^^^^
39 |
40 = help: consider refactoring to a associated function
41
42error: unused `self` argument
43 --> $DIR/unused_self.rs:16:35
44 |
45LL | fn unused_self_pin_nested(self: Pin<Arc<Self>>) {}
46 | ^^^^
47 |
48 = help: consider refactoring to a associated function
49
50error: unused `self` argument
51 --> $DIR/unused_self.rs:17:28
52 |
53LL | fn unused_self_box(self: Box<Self>) {}
54 | ^^^^
55 |
56 = help: consider refactoring to a associated function
57
58error: unused `self` argument
59 --> $DIR/unused_self.rs:18:40
60 |
61LL | fn unused_with_other_used_args(&self, x: u8, y: u8) -> u8 {
62 | ^^^^^
63 |
64 = help: consider refactoring to a associated function
65
66error: unused `self` argument
67 --> $DIR/unused_self.rs:21:37
68 |
69LL | fn unused_self_class_method(&self) {
70 | ^^^^^
71 |
72 = help: consider refactoring to a associated function
73
74error: aborting due to 9 previous errors
75