fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
7.4 KiB195 linesraw
1error[E0107]: wrong number of lifetime arguments: expected 2, found 1
2  --> $DIR/method-call-lifetime-args-fail.rs:16:7
3   |
4LL |     S.early::<'static>();
5   |       ^^^^^ expected 2 lifetime arguments
6
7error[E0107]: wrong number of lifetime arguments: expected 2, found 3
8  --> $DIR/method-call-lifetime-args-fail.rs:18:33
9   |
10LL |     S.early::<'static, 'static, 'static>();
11   |                                 ^^^^^^^ unexpected lifetime argument
12
13error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
14  --> $DIR/method-call-lifetime-args-fail.rs:27:15
15   |
16LL |     S::late::<'static>(S, &0, &0);
17   |               ^^^^^^^
18   |
19note: the late bound lifetime parameter is introduced here
20  --> $DIR/method-call-lifetime-args-fail.rs:4:13
21   |
22LL |     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
23   |             ^^
24
25error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
26  --> $DIR/method-call-lifetime-args-fail.rs:29:15
27   |
28LL |     S::late::<'static, 'static>(S, &0, &0);
29   |               ^^^^^^^
30   |
31note: the late bound lifetime parameter is introduced here
32  --> $DIR/method-call-lifetime-args-fail.rs:4:13
33   |
34LL |     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
35   |             ^^
36
37error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
38  --> $DIR/method-call-lifetime-args-fail.rs:31:15
39   |
40LL |     S::late::<'static, 'static, 'static>(S, &0, &0);
41   |               ^^^^^^^
42   |
43note: the late bound lifetime parameter is introduced here
44  --> $DIR/method-call-lifetime-args-fail.rs:4:13
45   |
46LL |     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
47   |             ^^
48
49error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
50  --> $DIR/method-call-lifetime-args-fail.rs:34:21
51   |
52LL |     S::late_early::<'static, 'static>(S, &0);
53   |                     ^^^^^^^
54   |
55note: the late bound lifetime parameter is introduced here
56  --> $DIR/method-call-lifetime-args-fail.rs:7:19
57   |
58LL |     fn late_early<'a, 'b>(self, _: &'a u8) -> &'b u8 { loop {} }
59   |                   ^^
60
61error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
62  --> $DIR/method-call-lifetime-args-fail.rs:36:21
63   |
64LL |     S::late_early::<'static, 'static, 'static>(S, &0);
65   |                     ^^^^^^^
66   |
67note: the late bound lifetime parameter is introduced here
68  --> $DIR/method-call-lifetime-args-fail.rs:7:19
69   |
70LL |     fn late_early<'a, 'b>(self, _: &'a u8) -> &'b u8 { loop {} }
71   |                   ^^
72
73error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
74  --> $DIR/method-call-lifetime-args-fail.rs:40:24
75   |
76LL |     S::late_implicit::<'static>(S, &0, &0);
77   |                        ^^^^^^^
78   |
79note: the late bound lifetime parameter is introduced here
80  --> $DIR/method-call-lifetime-args-fail.rs:5:31
81   |
82LL |     fn late_implicit(self, _: &u8, _: &u8) {}
83   |                               ^
84
85error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
86  --> $DIR/method-call-lifetime-args-fail.rs:42:24
87   |
88LL |     S::late_implicit::<'static, 'static>(S, &0, &0);
89   |                        ^^^^^^^
90   |
91note: the late bound lifetime parameter is introduced here
92  --> $DIR/method-call-lifetime-args-fail.rs:5:31
93   |
94LL |     fn late_implicit(self, _: &u8, _: &u8) {}
95   |                               ^
96
97error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
98  --> $DIR/method-call-lifetime-args-fail.rs:44:24
99   |
100LL |     S::late_implicit::<'static, 'static, 'static>(S, &0, &0);
101   |                        ^^^^^^^
102   |
103note: the late bound lifetime parameter is introduced here
104  --> $DIR/method-call-lifetime-args-fail.rs:5:31
105   |
106LL |     fn late_implicit(self, _: &u8, _: &u8) {}
107   |                               ^
108
109error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
110  --> $DIR/method-call-lifetime-args-fail.rs:47:30
111   |
112LL |     S::late_implicit_early::<'static, 'static>(S, &0);
113   |                              ^^^^^^^
114   |
115note: the late bound lifetime parameter is introduced here
116  --> $DIR/method-call-lifetime-args-fail.rs:8:41
117   |
118LL |     fn late_implicit_early<'b>(self, _: &u8) -> &'b u8 { loop {} }
119   |                                         ^
120
121error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
122  --> $DIR/method-call-lifetime-args-fail.rs:49:30
123   |
124LL |     S::late_implicit_early::<'static, 'static, 'static>(S, &0);
125   |                              ^^^^^^^
126   |
127note: the late bound lifetime parameter is introduced here
128  --> $DIR/method-call-lifetime-args-fail.rs:8:41
129   |
130LL |     fn late_implicit_early<'b>(self, _: &u8) -> &'b u8 { loop {} }
131   |                                         ^
132
133error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
134  --> $DIR/method-call-lifetime-args-fail.rs:52:35
135   |
136LL |     S::late_implicit_self_early::<'static, 'static>(&S);
137   |                                   ^^^^^^^
138   |
139note: the late bound lifetime parameter is introduced here
140  --> $DIR/method-call-lifetime-args-fail.rs:9:37
141   |
142LL |     fn late_implicit_self_early<'b>(&self) -> &'b u8 { loop {} }
143   |                                     ^
144
145error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
146  --> $DIR/method-call-lifetime-args-fail.rs:54:35
147   |
148LL |     S::late_implicit_self_early::<'static, 'static, 'static>(&S);
149   |                                   ^^^^^^^
150   |
151note: the late bound lifetime parameter is introduced here
152  --> $DIR/method-call-lifetime-args-fail.rs:9:37
153   |
154LL |     fn late_implicit_self_early<'b>(&self) -> &'b u8 { loop {} }
155   |                                     ^
156
157error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
158  --> $DIR/method-call-lifetime-args-fail.rs:57:28
159   |
160LL |     S::late_unused_early::<'static, 'static>(S);
161   |                            ^^^^^^^
162   |
163note: the late bound lifetime parameter is introduced here
164  --> $DIR/method-call-lifetime-args-fail.rs:10:26
165   |
166LL |     fn late_unused_early<'a, 'b>(self) -> &'b u8 { loop {} }
167   |                          ^^
168
169error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
170  --> $DIR/method-call-lifetime-args-fail.rs:59:28
171   |
172LL |     S::late_unused_early::<'static, 'static, 'static>(S);
173   |                            ^^^^^^^
174   |
175note: the late bound lifetime parameter is introduced here
176  --> $DIR/method-call-lifetime-args-fail.rs:10:26
177   |
178LL |     fn late_unused_early<'a, 'b>(self) -> &'b u8 { loop {} }
179   |                          ^^
180
181error[E0107]: wrong number of lifetime arguments: expected 2, found 1
182  --> $DIR/method-call-lifetime-args-fail.rs:63:5
183   |
184LL |     S::early::<'static>(S);
185   |     ^^^^^^^^^^^^^^^^^^^ expected 2 lifetime arguments
186
187error[E0107]: wrong number of lifetime arguments: expected 2, found 3
188  --> $DIR/method-call-lifetime-args-fail.rs:65:34
189   |
190LL |     S::early::<'static, 'static, 'static>(S);
191   |                                  ^^^^^^^ unexpected lifetime argument
192
193error: aborting due to 18 previous errors
194
195For more information about this error, try `rustc --explain E0107`.