]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unused_self.stderr
Auto merge of #97191 - wesleywiser:main_thread_name, r=ChrisDenton
[rust.git] / src / tools / clippy / tests / ui / unused_self.stderr
1 error: unused `self` argument
2   --> $DIR/unused_self.rs:11:29
3    |
4 LL |         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
10 error: unused `self` argument
11   --> $DIR/unused_self.rs:12:28
12    |
13 LL |         fn unused_self_ref(&self) {}
14    |                            ^^^^^
15    |
16    = help: consider refactoring to a associated function
17
18 error: unused `self` argument
19   --> $DIR/unused_self.rs:13:32
20    |
21 LL |         fn unused_self_mut_ref(&mut self) {}
22    |                                ^^^^^^^^^
23    |
24    = help: consider refactoring to a associated function
25
26 error: unused `self` argument
27   --> $DIR/unused_self.rs:14:32
28    |
29 LL |         fn unused_self_pin_ref(self: Pin<&Self>) {}
30    |                                ^^^^
31    |
32    = help: consider refactoring to a associated function
33
34 error: unused `self` argument
35   --> $DIR/unused_self.rs:15:36
36    |
37 LL |         fn unused_self_pin_mut_ref(self: Pin<&mut Self>) {}
38    |                                    ^^^^
39    |
40    = help: consider refactoring to a associated function
41
42 error: unused `self` argument
43   --> $DIR/unused_self.rs:16:35
44    |
45 LL |         fn unused_self_pin_nested(self: Pin<Arc<Self>>) {}
46    |                                   ^^^^
47    |
48    = help: consider refactoring to a associated function
49
50 error: unused `self` argument
51   --> $DIR/unused_self.rs:17:28
52    |
53 LL |         fn unused_self_box(self: Box<Self>) {}
54    |                            ^^^^
55    |
56    = help: consider refactoring to a associated function
57
58 error: unused `self` argument
59   --> $DIR/unused_self.rs:18:40
60    |
61 LL |         fn unused_with_other_used_args(&self, x: u8, y: u8) -> u8 {
62    |                                        ^^^^^
63    |
64    = help: consider refactoring to a associated function
65
66 error: unused `self` argument
67   --> $DIR/unused_self.rs:21:37
68    |
69 LL |         fn unused_self_class_method(&self) {
70    |                                     ^^^^^
71    |
72    = help: consider refactoring to a associated function
73
74 error: aborting due to 9 previous errors
75