1 error: the type of the `self` parameter does not need to be arbitrary
2 --> $DIR/needless_arbitrary_self_type.rs:12:16
4 LL | pub fn bad(self: Self) {
5 | ^^^^^^^^^^ help: consider to change this parameter to: `self`
7 = note: `-D clippy::needless-arbitrary-self-type` implied by `-D warnings`
9 error: the type of the `self` parameter does not need to be arbitrary
10 --> $DIR/needless_arbitrary_self_type.rs:20:20
12 LL | pub fn mut_bad(mut self: Self) {
13 | ^^^^^^^^^^^^^^ help: consider to change this parameter to: `mut self`
15 error: the type of the `self` parameter does not need to be arbitrary
16 --> $DIR/needless_arbitrary_self_type.rs:28:20
18 LL | pub fn ref_bad(self: &Self) {
19 | ^^^^^^^^^^^ help: consider to change this parameter to: `&self`
21 error: the type of the `self` parameter does not need to be arbitrary
22 --> $DIR/needless_arbitrary_self_type.rs:36:38
24 LL | pub fn ref_bad_with_lifetime<'a>(self: &'a Self) {
25 | ^^^^^^^^^^^^^^ help: consider to change this parameter to: `&'a self`
27 error: the type of the `self` parameter does not need to be arbitrary
28 --> $DIR/needless_arbitrary_self_type.rs:44:24
30 LL | pub fn mut_ref_bad(self: &mut Self) {
31 | ^^^^^^^^^^^^^^^ help: consider to change this parameter to: `&mut self`
33 error: the type of the `self` parameter does not need to be arbitrary
34 --> $DIR/needless_arbitrary_self_type.rs:52:42
36 LL | pub fn mut_ref_bad_with_lifetime<'a>(self: &'a mut Self) {
37 | ^^^^^^^^^^^^^^^^^^ help: consider to change this parameter to: `&'a mut self`
39 error: aborting due to 6 previous errors