1 error: unnecessary structure name repetition
2 --> $DIR/use_self.rs:14:21
5 | ^^^ help: use the applicable keyword: `Self`
7 = note: `-D clippy::use-self` implied by `-D warnings`
9 error: unnecessary structure name repetition
10 --> $DIR/use_self.rs:15:13
13 | ^^^ help: use the applicable keyword: `Self`
15 error: unnecessary structure name repetition
16 --> $DIR/use_self.rs:17:22
18 LL | fn test() -> Foo {
19 | ^^^ help: use the applicable keyword: `Self`
21 error: unnecessary structure name repetition
22 --> $DIR/use_self.rs:18:13
25 | ^^^ help: use the applicable keyword: `Self`
27 error: unnecessary structure name repetition
28 --> $DIR/use_self.rs:23:25
30 LL | fn default() -> Foo {
31 | ^^^ help: use the applicable keyword: `Self`
33 error: unnecessary structure name repetition
34 --> $DIR/use_self.rs:24:13
37 | ^^^ help: use the applicable keyword: `Self`
39 error: unnecessary structure name repetition
40 --> $DIR/use_self.rs:89:22
42 LL | fn refs(p1: &Bad) -> &Bad {
43 | ^^^ help: use the applicable keyword: `Self`
45 error: unnecessary structure name repetition
46 --> $DIR/use_self.rs:89:31
48 LL | fn refs(p1: &Bad) -> &Bad {
49 | ^^^ help: use the applicable keyword: `Self`
51 error: unnecessary structure name repetition
52 --> $DIR/use_self.rs:93:37
54 LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
55 | ^^^ help: use the applicable keyword: `Self`
57 error: unnecessary structure name repetition
58 --> $DIR/use_self.rs:93:53
60 LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
61 | ^^^ help: use the applicable keyword: `Self`
63 error: unnecessary structure name repetition
64 --> $DIR/use_self.rs:97:30
66 LL | fn mut_refs(p1: &mut Bad) -> &mut Bad {
67 | ^^^ help: use the applicable keyword: `Self`
69 error: unnecessary structure name repetition
70 --> $DIR/use_self.rs:97:43
72 LL | fn mut_refs(p1: &mut Bad) -> &mut Bad {
73 | ^^^ help: use the applicable keyword: `Self`
75 error: unnecessary structure name repetition
76 --> $DIR/use_self.rs:101:28
78 LL | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
79 | ^^^ help: use the applicable keyword: `Self`
81 error: unnecessary structure name repetition
82 --> $DIR/use_self.rs:101:46
84 LL | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
85 | ^^^ help: use the applicable keyword: `Self`
87 error: unnecessary structure name repetition
88 --> $DIR/use_self.rs:103:20
90 LL | fn vals(_: Bad) -> Bad {
91 | ^^^ help: use the applicable keyword: `Self`
93 error: unnecessary structure name repetition
94 --> $DIR/use_self.rs:103:28
96 LL | fn vals(_: Bad) -> Bad {
97 | ^^^ help: use the applicable keyword: `Self`
99 error: unnecessary structure name repetition
100 --> $DIR/use_self.rs:104:13
103 | ^^^ help: use the applicable keyword: `Self`
105 error: unnecessary structure name repetition
106 --> $DIR/use_self.rs:109:23
108 LL | type Output = Bad;
109 | ^^^ help: use the applicable keyword: `Self`
111 error: unnecessary structure name repetition
112 --> $DIR/use_self.rs:111:27
114 LL | fn mul(self, rhs: Bad) -> Bad {
115 | ^^^ help: use the applicable keyword: `Self`
117 error: unnecessary structure name repetition
118 --> $DIR/use_self.rs:111:35
120 LL | fn mul(self, rhs: Bad) -> Bad {
121 | ^^^ help: use the applicable keyword: `Self`
123 error: unnecessary structure name repetition
124 --> $DIR/use_self.rs:118:13
127 | ^^^ help: use the applicable keyword: `Self`
129 error: unnecessary structure name repetition
130 --> $DIR/use_self.rs:200:56
132 LL | fn bad(foos: &[Self]) -> impl Iterator<Item = &Foo> {
133 | ^^^ help: use the applicable keyword: `Self`
135 error: unnecessary structure name repetition
136 --> $DIR/use_self.rs:215:13
139 | ^^ help: use the applicable keyword: `Self`
141 error: unnecessary structure name repetition
142 --> $DIR/use_self.rs:223:25
144 LL | fn new() -> Foo {
145 | ^^^ help: use the applicable keyword: `Self`
147 LL | use_self_expand!(); // Should lint in local macros
148 | ------------------- in this macro invocation
150 error: unnecessary structure name repetition
151 --> $DIR/use_self.rs:224:17
154 | ^^^ help: use the applicable keyword: `Self`
156 LL | use_self_expand!(); // Should lint in local macros
157 | ------------------- in this macro invocation
159 error: unnecessary structure name repetition
160 --> $DIR/use_self.rs:259:21
162 LL | fn baz() -> Foo {
163 | ^^^ help: use the applicable keyword: `Self`
165 error: unnecessary structure name repetition
166 --> $DIR/use_self.rs:260:13
169 | ^^^ help: use the applicable keyword: `Self`
171 error: unnecessary structure name repetition
172 --> $DIR/use_self.rs:247:29
174 LL | fn bar() -> Bar {
175 | ^^^ help: use the applicable keyword: `Self`
177 error: unnecessary structure name repetition
178 --> $DIR/use_self.rs:248:21
180 LL | Bar { foo: Foo {} }
181 | ^^^ help: use the applicable keyword: `Self`
183 error: unnecessary structure name repetition
184 --> $DIR/use_self.rs:277:21
186 LL | let _ = Enum::B(42);
187 | ^^^^ help: use the applicable keyword: `Self`
189 error: unnecessary structure name repetition
190 --> $DIR/use_self.rs:278:21
192 LL | let _ = Enum::C { field: true };
193 | ^^^^ help: use the applicable keyword: `Self`
195 error: unnecessary structure name repetition
196 --> $DIR/use_self.rs:279:21
198 LL | let _ = Enum::A;
199 | ^^^^ help: use the applicable keyword: `Self`
201 error: unnecessary structure name repetition
202 --> $DIR/use_self.rs:310:13
204 LL | nested::A::fun_1();
205 | ^^^^^^^^^ help: use the applicable keyword: `Self`
207 error: unnecessary structure name repetition
208 --> $DIR/use_self.rs:311:13
211 | ^^^^^^^^^ help: use the applicable keyword: `Self`
213 error: unnecessary structure name repetition
214 --> $DIR/use_self.rs:313:13
217 | ^^^^^^^^^ help: use the applicable keyword: `Self`
219 error: unnecessary structure name repetition
220 --> $DIR/use_self.rs:332:13
222 LL | TestStruct::from_something()
223 | ^^^^^^^^^^ help: use the applicable keyword: `Self`
225 error: unnecessary structure name repetition
226 --> $DIR/use_self.rs:346:25
228 LL | async fn g() -> S {
229 | ^ help: use the applicable keyword: `Self`
231 error: unnecessary structure name repetition
232 --> $DIR/use_self.rs:347:13
235 | ^ help: use the applicable keyword: `Self`
237 error: unnecessary structure name repetition
238 --> $DIR/use_self.rs:351:16
241 | ^ help: use the applicable keyword: `Self`
243 error: unnecessary structure name repetition
244 --> $DIR/use_self.rs:351:22
247 | ^ help: use the applicable keyword: `Self`
249 error: aborting due to 40 previous errors