]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-call-lifetime-args-fail.stderr
Auto merge of #83152 - guswynn:jemallocator_part2, r=Mark-Simulacrum
[rust.git] / src / test / ui / methods / method-call-lifetime-args-fail.stderr
1 error[E0107]: this associated function takes 2 lifetime arguments but only 1 lifetime argument was supplied
2   --> $DIR/method-call-lifetime-args-fail.rs:16:7
3    |
4 LL |     S.early::<'static>();
5    |       ^^^^^   ------- supplied 1 lifetime argument
6    |       |
7    |       expected 2 lifetime arguments
8    |
9 note: associated function defined here, with 2 lifetime parameters: `'a`, `'b`
10   --> $DIR/method-call-lifetime-args-fail.rs:6:8
11    |
12 LL |     fn early<'a, 'b>(self) -> (&'a u8, &'b u8) { loop {} }
13    |        ^^^^^ --  --
14 help: add missing lifetime argument
15    |
16 LL |     S.early::<'static, 'b>();
17    |                      ^^^^
18
19 error[E0107]: this associated function takes 2 lifetime arguments but 3 lifetime arguments were supplied
20   --> $DIR/method-call-lifetime-args-fail.rs:18:7
21    |
22 LL |     S.early::<'static, 'static, 'static>();
23    |       ^^^^^                   --------- help: remove this lifetime argument
24    |       |
25    |       expected 2 lifetime arguments
26    |
27 note: associated function defined here, with 2 lifetime parameters: `'a`, `'b`
28   --> $DIR/method-call-lifetime-args-fail.rs:6:8
29    |
30 LL |     fn early<'a, 'b>(self) -> (&'a u8, &'b u8) { loop {} }
31    |        ^^^^^ --  --
32
33 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
34   --> $DIR/method-call-lifetime-args-fail.rs:27:15
35    |
36 LL |     S::late::<'static>(S, &0, &0);
37    |               ^^^^^^^
38    |
39 note: the late bound lifetime parameter is introduced here
40   --> $DIR/method-call-lifetime-args-fail.rs:4:13
41    |
42 LL |     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
43    |             ^^
44
45 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
46   --> $DIR/method-call-lifetime-args-fail.rs:29:15
47    |
48 LL |     S::late::<'static, 'static>(S, &0, &0);
49    |               ^^^^^^^
50    |
51 note: the late bound lifetime parameter is introduced here
52   --> $DIR/method-call-lifetime-args-fail.rs:4:13
53    |
54 LL |     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
55    |             ^^
56
57 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
58   --> $DIR/method-call-lifetime-args-fail.rs:31:15
59    |
60 LL |     S::late::<'static, 'static, 'static>(S, &0, &0);
61    |               ^^^^^^^
62    |
63 note: the late bound lifetime parameter is introduced here
64   --> $DIR/method-call-lifetime-args-fail.rs:4:13
65    |
66 LL |     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
67    |             ^^
68
69 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
70   --> $DIR/method-call-lifetime-args-fail.rs:34:21
71    |
72 LL |     S::late_early::<'static, 'static>(S, &0);
73    |                     ^^^^^^^
74    |
75 note: the late bound lifetime parameter is introduced here
76   --> $DIR/method-call-lifetime-args-fail.rs:7:19
77    |
78 LL |     fn late_early<'a, 'b>(self, _: &'a u8) -> &'b u8 { loop {} }
79    |                   ^^
80
81 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
82   --> $DIR/method-call-lifetime-args-fail.rs:36:21
83    |
84 LL |     S::late_early::<'static, 'static, 'static>(S, &0);
85    |                     ^^^^^^^
86    |
87 note: the late bound lifetime parameter is introduced here
88   --> $DIR/method-call-lifetime-args-fail.rs:7:19
89    |
90 LL |     fn late_early<'a, 'b>(self, _: &'a u8) -> &'b u8 { loop {} }
91    |                   ^^
92
93 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
94   --> $DIR/method-call-lifetime-args-fail.rs:40:24
95    |
96 LL |     S::late_implicit::<'static>(S, &0, &0);
97    |                        ^^^^^^^
98    |
99 note: the late bound lifetime parameter is introduced here
100   --> $DIR/method-call-lifetime-args-fail.rs:5:31
101    |
102 LL |     fn late_implicit(self, _: &u8, _: &u8) {}
103    |                               ^
104
105 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
106   --> $DIR/method-call-lifetime-args-fail.rs:42:24
107    |
108 LL |     S::late_implicit::<'static, 'static>(S, &0, &0);
109    |                        ^^^^^^^
110    |
111 note: the late bound lifetime parameter is introduced here
112   --> $DIR/method-call-lifetime-args-fail.rs:5:31
113    |
114 LL |     fn late_implicit(self, _: &u8, _: &u8) {}
115    |                               ^
116
117 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
118   --> $DIR/method-call-lifetime-args-fail.rs:44:24
119    |
120 LL |     S::late_implicit::<'static, 'static, 'static>(S, &0, &0);
121    |                        ^^^^^^^
122    |
123 note: the late bound lifetime parameter is introduced here
124   --> $DIR/method-call-lifetime-args-fail.rs:5:31
125    |
126 LL |     fn late_implicit(self, _: &u8, _: &u8) {}
127    |                               ^
128
129 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
130   --> $DIR/method-call-lifetime-args-fail.rs:47:30
131    |
132 LL |     S::late_implicit_early::<'static, 'static>(S, &0);
133    |                              ^^^^^^^
134    |
135 note: the late bound lifetime parameter is introduced here
136   --> $DIR/method-call-lifetime-args-fail.rs:8:41
137    |
138 LL |     fn late_implicit_early<'b>(self, _: &u8) -> &'b u8 { loop {} }
139    |                                         ^
140
141 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
142   --> $DIR/method-call-lifetime-args-fail.rs:49:30
143    |
144 LL |     S::late_implicit_early::<'static, 'static, 'static>(S, &0);
145    |                              ^^^^^^^
146    |
147 note: the late bound lifetime parameter is introduced here
148   --> $DIR/method-call-lifetime-args-fail.rs:8:41
149    |
150 LL |     fn late_implicit_early<'b>(self, _: &u8) -> &'b u8 { loop {} }
151    |                                         ^
152
153 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
154   --> $DIR/method-call-lifetime-args-fail.rs:52:35
155    |
156 LL |     S::late_implicit_self_early::<'static, 'static>(&S);
157    |                                   ^^^^^^^
158    |
159 note: the late bound lifetime parameter is introduced here
160   --> $DIR/method-call-lifetime-args-fail.rs:9:37
161    |
162 LL |     fn late_implicit_self_early<'b>(&self) -> &'b u8 { loop {} }
163    |                                     ^
164
165 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
166   --> $DIR/method-call-lifetime-args-fail.rs:54:35
167    |
168 LL |     S::late_implicit_self_early::<'static, 'static, 'static>(&S);
169    |                                   ^^^^^^^
170    |
171 note: the late bound lifetime parameter is introduced here
172   --> $DIR/method-call-lifetime-args-fail.rs:9:37
173    |
174 LL |     fn late_implicit_self_early<'b>(&self) -> &'b u8 { loop {} }
175    |                                     ^
176
177 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
178   --> $DIR/method-call-lifetime-args-fail.rs:57:28
179    |
180 LL |     S::late_unused_early::<'static, 'static>(S);
181    |                            ^^^^^^^
182    |
183 note: the late bound lifetime parameter is introduced here
184   --> $DIR/method-call-lifetime-args-fail.rs:10:26
185    |
186 LL |     fn late_unused_early<'a, 'b>(self) -> &'b u8 { loop {} }
187    |                          ^^
188
189 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
190   --> $DIR/method-call-lifetime-args-fail.rs:59:28
191    |
192 LL |     S::late_unused_early::<'static, 'static, 'static>(S);
193    |                            ^^^^^^^
194    |
195 note: the late bound lifetime parameter is introduced here
196   --> $DIR/method-call-lifetime-args-fail.rs:10:26
197    |
198 LL |     fn late_unused_early<'a, 'b>(self) -> &'b u8 { loop {} }
199    |                          ^^
200
201 error[E0107]: this associated function takes 2 lifetime arguments but only 1 lifetime argument was supplied
202   --> $DIR/method-call-lifetime-args-fail.rs:63:8
203    |
204 LL |     S::early::<'static>(S);
205    |        ^^^^^   ------- supplied 1 lifetime argument
206    |        |
207    |        expected 2 lifetime arguments
208    |
209 note: associated function defined here, with 2 lifetime parameters: `'a`, `'b`
210   --> $DIR/method-call-lifetime-args-fail.rs:6:8
211    |
212 LL |     fn early<'a, 'b>(self) -> (&'a u8, &'b u8) { loop {} }
213    |        ^^^^^ --  --
214 help: add missing lifetime argument
215    |
216 LL |     S::early::<'static, 'b>(S);
217    |                       ^^^^
218
219 error[E0107]: this associated function takes 2 lifetime arguments but 3 lifetime arguments were supplied
220   --> $DIR/method-call-lifetime-args-fail.rs:65:8
221    |
222 LL |     S::early::<'static, 'static, 'static>(S);
223    |        ^^^^^                   --------- help: remove this lifetime argument
224    |        |
225    |        expected 2 lifetime arguments
226    |
227 note: associated function defined here, with 2 lifetime parameters: `'a`, `'b`
228   --> $DIR/method-call-lifetime-args-fail.rs:6:8
229    |
230 LL |     fn early<'a, 'b>(self) -> (&'a u8, &'b u8) { loop {} }
231    |        ^^^^^ --  --
232
233 error: aborting due to 18 previous errors
234
235 For more information about this error, try `rustc --explain E0107`.