summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/needless_arbitrary_self_type.stderr
blob: f4c645d35c8f134a05fa4bd1d1665d65a42a4d5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
error: the type of the `self` parameter does not need to be arbitrary
  --> $DIR/needless_arbitrary_self_type.rs:12:16
   |
LL |     pub fn bad(self: Self) {
   |                ^^^^^^^^^^ help: consider to change this parameter to: `self`
   |
   = note: `-D clippy::needless-arbitrary-self-type` implied by `-D warnings`

error: the type of the `self` parameter does not need to be arbitrary
  --> $DIR/needless_arbitrary_self_type.rs:20:20
   |
LL |     pub fn mut_bad(mut self: Self) {
   |                    ^^^^^^^^^^^^^^ help: consider to change this parameter to: `mut self`

error: the type of the `self` parameter does not need to be arbitrary
  --> $DIR/needless_arbitrary_self_type.rs:28:20
   |
LL |     pub fn ref_bad(self: &Self) {
   |                    ^^^^^^^^^^^ help: consider to change this parameter to: `&self`

error: the type of the `self` parameter does not need to be arbitrary
  --> $DIR/needless_arbitrary_self_type.rs:36:38
   |
LL |     pub fn ref_bad_with_lifetime<'a>(self: &'a Self) {
   |                                      ^^^^^^^^^^^^^^ help: consider to change this parameter to: `&'a self`

error: the type of the `self` parameter does not need to be arbitrary
  --> $DIR/needless_arbitrary_self_type.rs:44:24
   |
LL |     pub fn mut_ref_bad(self: &mut Self) {
   |                        ^^^^^^^^^^^^^^^ help: consider to change this parameter to: `&mut self`

error: the type of the `self` parameter does not need to be arbitrary
  --> $DIR/needless_arbitrary_self_type.rs:52:42
   |
LL |     pub fn mut_ref_bad_with_lifetime<'a>(self: &'a mut Self) {
   |                                          ^^^^^^^^^^^^^^^^^^ help: consider to change this parameter to: `&'a mut self`

error: aborting due to 6 previous errors