1 error: unnecessary structure name repetition
2 --> $DIR/use_self.rs:13: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:14:13
13 | ^^^ help: use the applicable keyword: `Self`
15 error: unnecessary structure name repetition
16 --> $DIR/use_self.rs:16:22
18 LL | fn test() -> Foo {
19 | ^^^ help: use the applicable keyword: `Self`
21 error: unnecessary structure name repetition
22 --> $DIR/use_self.rs:17:13
25 | ^^^ help: use the applicable keyword: `Self`
27 error: unnecessary structure name repetition
28 --> $DIR/use_self.rs:22:25
30 LL | fn default() -> Foo {
31 | ^^^ help: use the applicable keyword: `Self`
33 error: unnecessary structure name repetition
34 --> $DIR/use_self.rs:23:13
37 | ^^^ help: use the applicable keyword: `Self`
39 error: unnecessary structure name repetition
40 --> $DIR/use_self.rs:88: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:88: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:92: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:92: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:96: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:96: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:100: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:100: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:102: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:102: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:103:13
103 | ^^^ help: use the applicable keyword: `Self`
105 error: unnecessary structure name repetition
106 --> $DIR/use_self.rs:108:23
108 LL | type Output = Bad;
109 | ^^^ help: use the applicable keyword: `Self`
111 error: unnecessary structure name repetition
112 --> $DIR/use_self.rs:110: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:110: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:202:56
126 LL | fn bad(foos: &[Self]) -> impl Iterator<Item = &Foo> {
127 | ^^^ help: use the applicable keyword: `Self`
129 error: unnecessary structure name repetition
130 --> $DIR/use_self.rs:217:13
133 | ^^ help: use the applicable keyword: `Self`
135 error: unnecessary structure name repetition
136 --> $DIR/use_self.rs:225:25
138 LL | fn new() -> Foo {
139 | ^^^ help: use the applicable keyword: `Self`
141 LL | use_self_expand!(); // Should lint in local macros
142 | ------------------- in this macro invocation
144 error: unnecessary structure name repetition
145 --> $DIR/use_self.rs:226:17
148 | ^^^ help: use the applicable keyword: `Self`
150 LL | use_self_expand!(); // Should lint in local macros
151 | ------------------- in this macro invocation
153 error: unnecessary structure name repetition
154 --> $DIR/use_self.rs:261:21
156 LL | fn baz() -> Foo {
157 | ^^^ help: use the applicable keyword: `Self`
159 error: unnecessary structure name repetition
160 --> $DIR/use_self.rs:262:13
163 | ^^^ help: use the applicable keyword: `Self`
165 error: unnecessary structure name repetition
166 --> $DIR/use_self.rs:249:29
168 LL | fn bar() -> Bar {
169 | ^^^ help: use the applicable keyword: `Self`
171 error: unnecessary structure name repetition
172 --> $DIR/use_self.rs:250:21
174 LL | Bar { foo: Foo {} }
175 | ^^^ help: use the applicable keyword: `Self`
177 error: unnecessary structure name repetition
178 --> $DIR/use_self.rs:304:13
180 LL | nested::A::fun_1();
181 | ^^^^^^^^^ help: use the applicable keyword: `Self`
183 error: unnecessary structure name repetition
184 --> $DIR/use_self.rs:305:13
187 | ^^^^^^^^^ help: use the applicable keyword: `Self`
189 error: unnecessary structure name repetition
190 --> $DIR/use_self.rs:307:13
193 | ^^^^^^^^^ help: use the applicable keyword: `Self`
195 error: aborting due to 31 previous errors