@@ -37,94 +37,100 @@ LL | Foo::new()
37
37
| ^^^^^^^^ help: use the applicable keyword: `Self`
38
38
39
39
error: unnecessary structure name repetition
40
- --> $DIR/use_self.rs:96 :22
40
+ --> $DIR/use_self.rs:95 :22
41
41
|
42
42
LL | fn refs(p1: &Bad) -> &Bad {
43
43
| ^^^ help: use the applicable keyword: `Self`
44
44
45
45
error: unnecessary structure name repetition
46
- --> $DIR/use_self.rs:96 :31
46
+ --> $DIR/use_self.rs:95 :31
47
47
|
48
48
LL | fn refs(p1: &Bad) -> &Bad {
49
49
| ^^^ help: use the applicable keyword: `Self`
50
50
51
51
error: unnecessary structure name repetition
52
- --> $DIR/use_self.rs:100 :37
52
+ --> $DIR/use_self.rs:99 :37
53
53
|
54
54
LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
55
55
| ^^^ help: use the applicable keyword: `Self`
56
56
57
57
error: unnecessary structure name repetition
58
- --> $DIR/use_self.rs:100 :53
58
+ --> $DIR/use_self.rs:99 :53
59
59
|
60
60
LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
61
61
| ^^^ help: use the applicable keyword: `Self`
62
62
63
63
error: unnecessary structure name repetition
64
- --> $DIR/use_self.rs:104 :30
64
+ --> $DIR/use_self.rs:103 :30
65
65
|
66
66
LL | fn mut_refs(p1: &mut Bad) -> &mut Bad {
67
67
| ^^^ help: use the applicable keyword: `Self`
68
68
69
69
error: unnecessary structure name repetition
70
- --> $DIR/use_self.rs:104 :43
70
+ --> $DIR/use_self.rs:103 :43
71
71
|
72
72
LL | fn mut_refs(p1: &mut Bad) -> &mut Bad {
73
73
| ^^^ help: use the applicable keyword: `Self`
74
74
75
75
error: unnecessary structure name repetition
76
- --> $DIR/use_self.rs:108 :28
76
+ --> $DIR/use_self.rs:107 :28
77
77
|
78
78
LL | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
79
79
| ^^^ help: use the applicable keyword: `Self`
80
80
81
81
error: unnecessary structure name repetition
82
- --> $DIR/use_self.rs:108 :46
82
+ --> $DIR/use_self.rs:107 :46
83
83
|
84
84
LL | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
85
85
| ^^^ help: use the applicable keyword: `Self`
86
86
87
87
error: unnecessary structure name repetition
88
- --> $DIR/use_self.rs:110 :20
88
+ --> $DIR/use_self.rs:109 :20
89
89
|
90
90
LL | fn vals(_: Bad) -> Bad {
91
91
| ^^^ help: use the applicable keyword: `Self`
92
92
93
93
error: unnecessary structure name repetition
94
- --> $DIR/use_self.rs:110 :28
94
+ --> $DIR/use_self.rs:109 :28
95
95
|
96
96
LL | fn vals(_: Bad) -> Bad {
97
97
| ^^^ help: use the applicable keyword: `Self`
98
98
99
99
error: unnecessary structure name repetition
100
- --> $DIR/use_self.rs:111 :13
100
+ --> $DIR/use_self.rs:110 :13
101
101
|
102
102
LL | Bad::default()
103
103
| ^^^^^^^^^^^^ help: use the applicable keyword: `Self`
104
104
105
105
error: unnecessary structure name repetition
106
- --> $DIR/use_self.rs:116 :23
106
+ --> $DIR/use_self.rs:115 :23
107
107
|
108
108
LL | type Output = Bad;
109
109
| ^^^ help: use the applicable keyword: `Self`
110
110
111
111
error: unnecessary structure name repetition
112
- --> $DIR/use_self.rs:118 :27
112
+ --> $DIR/use_self.rs:117 :27
113
113
|
114
114
LL | fn mul(self, rhs: Bad) -> Bad {
115
115
| ^^^ help: use the applicable keyword: `Self`
116
116
117
117
error: unnecessary structure name repetition
118
- --> $DIR/use_self.rs:118 :35
118
+ --> $DIR/use_self.rs:117 :35
119
119
|
120
120
LL | fn mul(self, rhs: Bad) -> Bad {
121
121
| ^^^ help: use the applicable keyword: `Self`
122
122
123
123
error: unnecessary structure name repetition
124
- --> $DIR/use_self.rs:210 :56
124
+ --> $DIR/use_self.rs:209 :56
125
125
|
126
126
LL | fn bad(foos: &[Self]) -> impl Iterator<Item = &Foo> {
127
127
| ^^^ help: use the applicable keyword: `Self`
128
128
129
- error: aborting due to 21 previous errors
129
+ error: unnecessary structure name repetition
130
+ --> $DIR/use_self.rs:224:13
131
+ |
132
+ LL | TS(0)
133
+ | ^^ help: use the applicable keyword: `Self`
134
+
135
+ error: aborting due to 22 previous errors
130
136
0 commit comments