2019-10-03 14:09:32 -05:00
|
|
|
error: unused `self` argument
|
|
|
|
--> $DIR/unused_self.rs:11:29
|
|
|
|
|
|
|
|
|
LL | fn unused_self_move(self) {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
2023-01-01 05:21:28 -06:00
|
|
|
= help: consider refactoring to an associated function
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::unused-self` implied by `-D warnings`
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
error: unused `self` argument
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_self.rs:13:28
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
|
LL | fn unused_self_ref(&self) {}
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2023-01-01 05:21:28 -06:00
|
|
|
= help: consider refactoring to an associated function
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
error: unused `self` argument
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_self.rs:15:32
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
|
LL | fn unused_self_mut_ref(&mut self) {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2023-01-01 05:21:28 -06:00
|
|
|
= help: consider refactoring to an associated function
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
error: unused `self` argument
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_self.rs:17:32
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
|
LL | fn unused_self_pin_ref(self: Pin<&Self>) {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
2023-01-01 05:21:28 -06:00
|
|
|
= help: consider refactoring to an associated function
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
error: unused `self` argument
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_self.rs:19:36
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
|
LL | fn unused_self_pin_mut_ref(self: Pin<&mut Self>) {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
2023-01-01 05:21:28 -06:00
|
|
|
= help: consider refactoring to an associated function
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
error: unused `self` argument
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_self.rs:21:35
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
|
LL | fn unused_self_pin_nested(self: Pin<Arc<Self>>) {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
2023-01-01 05:21:28 -06:00
|
|
|
= help: consider refactoring to an associated function
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
error: unused `self` argument
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_self.rs:23:28
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
|
LL | fn unused_self_box(self: Box<Self>) {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
2023-01-01 05:21:28 -06:00
|
|
|
= help: consider refactoring to an associated function
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
error: unused `self` argument
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_self.rs:25:40
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
|
LL | fn unused_with_other_used_args(&self, x: u8, y: u8) -> u8 {
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2023-01-01 05:21:28 -06:00
|
|
|
= help: consider refactoring to an associated function
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
error: unused `self` argument
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_self.rs:29:37
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
|
LL | fn unused_self_class_method(&self) {
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2023-01-01 05:21:28 -06:00
|
|
|
= help: consider refactoring to an associated function
|
2019-10-03 14:09:32 -05:00
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|