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