]> git.lizzy.rs Git - rust.git/blob - tests/ui/use_self.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / use_self.stderr
1 error: unnecessary structure name repetition
2   --> $DIR/use_self.rs:13:21
3    |
4 LL |         fn new() -> Foo {
5    |                     ^^^ help: use the applicable keyword: `Self`
6    |
7    = note: `-D clippy::use-self` implied by `-D warnings`
8
9 error: unnecessary structure name repetition
10   --> $DIR/use_self.rs:14:13
11    |
12 LL |             Foo {}
13    |             ^^^ help: use the applicable keyword: `Self`
14
15 error: unnecessary structure name repetition
16   --> $DIR/use_self.rs:16:22
17    |
18 LL |         fn test() -> Foo {
19    |                      ^^^ help: use the applicable keyword: `Self`
20
21 error: unnecessary structure name repetition
22   --> $DIR/use_self.rs:17:13
23    |
24 LL |             Foo::new()
25    |             ^^^ help: use the applicable keyword: `Self`
26
27 error: unnecessary structure name repetition
28   --> $DIR/use_self.rs:22:25
29    |
30 LL |         fn default() -> Foo {
31    |                         ^^^ help: use the applicable keyword: `Self`
32
33 error: unnecessary structure name repetition
34   --> $DIR/use_self.rs:23:13
35    |
36 LL |             Foo::new()
37    |             ^^^ help: use the applicable keyword: `Self`
38
39 error: unnecessary structure name repetition
40   --> $DIR/use_self.rs:88:22
41    |
42 LL |         fn refs(p1: &Bad) -> &Bad {
43    |                      ^^^ help: use the applicable keyword: `Self`
44
45 error: unnecessary structure name repetition
46   --> $DIR/use_self.rs:88:31
47    |
48 LL |         fn refs(p1: &Bad) -> &Bad {
49    |                               ^^^ help: use the applicable keyword: `Self`
50
51 error: unnecessary structure name repetition
52   --> $DIR/use_self.rs:92:37
53    |
54 LL |         fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
55    |                                     ^^^ help: use the applicable keyword: `Self`
56
57 error: unnecessary structure name repetition
58   --> $DIR/use_self.rs:92:53
59    |
60 LL |         fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
61    |                                                     ^^^ help: use the applicable keyword: `Self`
62
63 error: unnecessary structure name repetition
64   --> $DIR/use_self.rs:96:30
65    |
66 LL |         fn mut_refs(p1: &mut Bad) -> &mut Bad {
67    |                              ^^^ help: use the applicable keyword: `Self`
68
69 error: unnecessary structure name repetition
70   --> $DIR/use_self.rs:96:43
71    |
72 LL |         fn mut_refs(p1: &mut Bad) -> &mut Bad {
73    |                                           ^^^ help: use the applicable keyword: `Self`
74
75 error: unnecessary structure name repetition
76   --> $DIR/use_self.rs:100:28
77    |
78 LL |         fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
79    |                            ^^^ help: use the applicable keyword: `Self`
80
81 error: unnecessary structure name repetition
82   --> $DIR/use_self.rs:100:46
83    |
84 LL |         fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
85    |                                              ^^^ help: use the applicable keyword: `Self`
86
87 error: unnecessary structure name repetition
88   --> $DIR/use_self.rs:102:20
89    |
90 LL |         fn vals(_: Bad) -> Bad {
91    |                    ^^^ help: use the applicable keyword: `Self`
92
93 error: unnecessary structure name repetition
94   --> $DIR/use_self.rs:102:28
95    |
96 LL |         fn vals(_: Bad) -> Bad {
97    |                            ^^^ help: use the applicable keyword: `Self`
98
99 error: unnecessary structure name repetition
100   --> $DIR/use_self.rs:103:13
101    |
102 LL |             Bad::default()
103    |             ^^^ help: use the applicable keyword: `Self`
104
105 error: unnecessary structure name repetition
106   --> $DIR/use_self.rs:108:23
107    |
108 LL |         type Output = Bad;
109    |                       ^^^ help: use the applicable keyword: `Self`
110
111 error: unnecessary structure name repetition
112   --> $DIR/use_self.rs:110:27
113    |
114 LL |         fn mul(self, rhs: Bad) -> Bad {
115    |                           ^^^ help: use the applicable keyword: `Self`
116
117 error: unnecessary structure name repetition
118   --> $DIR/use_self.rs:110:35
119    |
120 LL |         fn mul(self, rhs: Bad) -> Bad {
121    |                                   ^^^ help: use the applicable keyword: `Self`
122
123 error: unnecessary structure name repetition
124   --> $DIR/use_self.rs:117:13
125    |
126 LL |             Bad
127    |             ^^^ help: use the applicable keyword: `Self`
128
129 error: unnecessary structure name repetition
130   --> $DIR/use_self.rs:199:56
131    |
132 LL |         fn bad(foos: &[Self]) -> impl Iterator<Item = &Foo> {
133    |                                                        ^^^ help: use the applicable keyword: `Self`
134
135 error: unnecessary structure name repetition
136   --> $DIR/use_self.rs:214:13
137    |
138 LL |             TS(0)
139    |             ^^ help: use the applicable keyword: `Self`
140
141 error: unnecessary structure name repetition
142   --> $DIR/use_self.rs:222:25
143    |
144 LL |             fn new() -> Foo {
145    |                         ^^^ help: use the applicable keyword: `Self`
146 ...
147 LL |         use_self_expand!(); // Should lint in local macros
148    |         ------------------- in this macro invocation
149
150 error: unnecessary structure name repetition
151   --> $DIR/use_self.rs:223:17
152    |
153 LL |                 Foo {}
154    |                 ^^^ help: use the applicable keyword: `Self`
155 ...
156 LL |         use_self_expand!(); // Should lint in local macros
157    |         ------------------- in this macro invocation
158
159 error: unnecessary structure name repetition
160   --> $DIR/use_self.rs:258:21
161    |
162 LL |         fn baz() -> Foo {
163    |                     ^^^ help: use the applicable keyword: `Self`
164
165 error: unnecessary structure name repetition
166   --> $DIR/use_self.rs:259:13
167    |
168 LL |             Foo {}
169    |             ^^^ help: use the applicable keyword: `Self`
170
171 error: unnecessary structure name repetition
172   --> $DIR/use_self.rs:246:29
173    |
174 LL |                 fn bar() -> Bar {
175    |                             ^^^ help: use the applicable keyword: `Self`
176
177 error: unnecessary structure name repetition
178   --> $DIR/use_self.rs:247:21
179    |
180 LL |                     Bar { foo: Foo {} }
181    |                     ^^^ help: use the applicable keyword: `Self`
182
183 error: unnecessary structure name repetition
184   --> $DIR/use_self.rs:276:21
185    |
186 LL |             let _ = Enum::B(42);
187    |                     ^^^^ help: use the applicable keyword: `Self`
188
189 error: unnecessary structure name repetition
190   --> $DIR/use_self.rs:277:21
191    |
192 LL |             let _ = Enum::C { field: true };
193    |                     ^^^^ help: use the applicable keyword: `Self`
194
195 error: unnecessary structure name repetition
196   --> $DIR/use_self.rs:278:21
197    |
198 LL |             let _ = Enum::A;
199    |                     ^^^^ help: use the applicable keyword: `Self`
200
201 error: unnecessary structure name repetition
202   --> $DIR/use_self.rs:309:13
203    |
204 LL |             nested::A::fun_1();
205    |             ^^^^^^^^^ help: use the applicable keyword: `Self`
206
207 error: unnecessary structure name repetition
208   --> $DIR/use_self.rs:310:13
209    |
210 LL |             nested::A::A;
211    |             ^^^^^^^^^ help: use the applicable keyword: `Self`
212
213 error: unnecessary structure name repetition
214   --> $DIR/use_self.rs:312:13
215    |
216 LL |             nested::A {};
217    |             ^^^^^^^^^ help: use the applicable keyword: `Self`
218
219 error: aborting due to 35 previous errors
220