fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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