1 error: unnecessary structure name repetition
2 --> $DIR/use_self.rs:11: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:12:13
13 | ^^^ help: use the applicable keyword: `Self`
15 error: unnecessary structure name repetition
16 --> $DIR/use_self.rs:14:22
18 LL | fn test() -> Foo {
19 | ^^^ help: use the applicable keyword: `Self`
21 error: unnecessary structure name repetition
22 --> $DIR/use_self.rs:15:13
25 | ^^^^^^^^ help: use the applicable keyword: `Self`
27 error: unnecessary structure name repetition
28 --> $DIR/use_self.rs:20:25
30 LL | fn default() -> Foo {
31 | ^^^ help: use the applicable keyword: `Self`
33 error: unnecessary structure name repetition
34 --> $DIR/use_self.rs:21:13
37 | ^^^^^^^^ help: use the applicable keyword: `Self`
39 error: unnecessary structure name repetition
40 --> $DIR/use_self.rs:86: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:86: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:90: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:90: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:94: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:94: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:98: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:98: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:100: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:100: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:101:13
103 | ^^^^^^^^^^^^ help: use the applicable keyword: `Self`
105 error: unnecessary structure name repetition
106 --> $DIR/use_self.rs:106:23
108 LL | type Output = Bad;
109 | ^^^ help: use the applicable keyword: `Self`
111 error: unnecessary structure name repetition
112 --> $DIR/use_self.rs:108: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:108: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:200: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:215:13
133 | ^^ help: use the applicable keyword: `Self`
135 error: unnecessary structure name repetition
136 --> $DIR/use_self.rs:223: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:224: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:246:29
156 LL | fn bar() -> Bar {
157 | ^^^ help: use the applicable keyword: `Self`
159 error: unnecessary structure name repetition
160 --> $DIR/use_self.rs:247:21
162 LL | Bar { foo: Foo {} }
163 | ^^^ help: use the applicable keyword: `Self`
165 error: aborting due to 26 previous errors