about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/use_self_trait.stderr
blob: 1b664b3b7a28f740b0ab4a5eec52a86838134a1d (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:19:18
   |
LL |     fn refs(p1: &Bad) -> &Bad {
   |                  ^^^ help: use the applicable keyword: `Self`
   |
   = note: `-D clippy::use-self` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::use_self)]`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:19:27
   |
LL |     fn refs(p1: &Bad) -> &Bad {
   |                           ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:25:33
   |
LL |     fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
   |                                 ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:25:49
   |
LL |     fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
   |                                                 ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:31:26
   |
LL |     fn mut_refs(p1: &mut Bad) -> &mut Bad {
   |                          ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:31:39
   |
LL |     fn mut_refs(p1: &mut Bad) -> &mut Bad {
   |                                       ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:37:24
   |
LL |     fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
   |                        ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:37:42
   |
LL |     fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
   |                                          ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:41:16
   |
LL |     fn vals(_: Bad) -> Bad {
   |                ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:41:24
   |
LL |     fn vals(_: Bad) -> Bad {
   |                        ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:44:9
   |
LL |         Bad
   |         ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:50:19
   |
LL |     type Output = Bad;
   |                   ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:53:23
   |
LL |     fn mul(self, rhs: Bad) -> Bad {
   |                       ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:53:31
   |
LL |     fn mul(self, rhs: Bad) -> Bad {
   |                               ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:62:9
   |
LL |         Bad
   |         ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> tests/ui/use_self_trait.rs:160:13
   |
LL |             std::fmt::Error // Should lint
   |             ^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self`

error: aborting due to 16 previous errors