@@ -227,7 +227,11 @@ note: the late bound lifetime parameter is introduced here
227227 |
228228LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
229229 | ^^
230- = help: remove the explicit lifetime argument
230+ help: remove the explicit lifetime argument
231+ |
232+ LL - let _: [u8; faz::<'a>(&())];
233+ LL + let _: [u8; faz(&())];
234+ |
231235
232236error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
233237 --> $DIR/const-arg-in-const-arg.rs:21:23
@@ -240,7 +244,11 @@ note: the late bound lifetime parameter is introduced here
240244 |
241245LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
242246 | ^^
243- = help: remove the explicit lifetime argument
247+ help: remove the explicit lifetime argument
248+ |
249+ LL - let _: [u8; faz::<'b>(&())];
250+ LL + let _: [u8; faz(&())];
251+ |
244252
245253error[E0747]: unresolved item provided when a constant was expected
246254 --> $DIR/const-arg-in-const-arg.rs:38:24
@@ -264,7 +272,11 @@ note: the late bound lifetime parameter is introduced here
264272 |
265273LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
266274 | ^^
267- = help: remove the explicit lifetime argument
275+ help: remove the explicit lifetime argument
276+ |
277+ LL - let _: Foo<{ faz::<'a>(&()) }>;
278+ LL + let _: Foo<{ faz(&()) }>;
279+ |
268280
269281error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
270282 --> $DIR/const-arg-in-const-arg.rs:44:24
@@ -277,7 +289,11 @@ note: the late bound lifetime parameter is introduced here
277289 |
278290LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
279291 | ^^
280- = help: remove the explicit lifetime argument
292+ help: remove the explicit lifetime argument
293+ |
294+ LL - let _: Foo<{ faz::<'b>(&()) }>;
295+ LL + let _: Foo<{ faz(&()) }>;
296+ |
281297
282298error: constant expression depends on a generic parameter
283299 --> $DIR/const-arg-in-const-arg.rs:25:17
@@ -309,7 +325,11 @@ note: the late bound lifetime parameter is introduced here
309325 |
310326LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
311327 | ^^
312- = help: remove the explicit lifetime argument
328+ help: remove the explicit lifetime argument
329+ |
330+ LL - let _ = [0; faz::<'a>(&())];
331+ LL + let _ = [0; faz(&())];
332+ |
313333
314334error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
315335 --> $DIR/const-arg-in-const-arg.rs:33:23
@@ -322,7 +342,11 @@ note: the late bound lifetime parameter is introduced here
322342 |
323343LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
324344 | ^^
325- = help: remove the explicit lifetime argument
345+ help: remove the explicit lifetime argument
346+ |
347+ LL - let _ = [0; faz::<'b>(&())];
348+ LL + let _ = [0; faz(&())];
349+ |
326350
327351error[E0747]: unresolved item provided when a constant was expected
328352 --> $DIR/const-arg-in-const-arg.rs:49:27
@@ -346,7 +370,11 @@ note: the late bound lifetime parameter is introduced here
346370 |
347371LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
348372 | ^^
349- = help: remove the explicit lifetime argument
373+ help: remove the explicit lifetime argument
374+ |
375+ LL - let _ = Foo::<{ faz::<'a>(&()) }>;
376+ LL + let _ = Foo::<{ faz(&()) }>;
377+ |
350378
351379error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
352380 --> $DIR/const-arg-in-const-arg.rs:55:27
@@ -359,7 +387,11 @@ note: the late bound lifetime parameter is introduced here
359387 |
360388LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
361389 | ^^
362- = help: remove the explicit lifetime argument
390+ help: remove the explicit lifetime argument
391+ |
392+ LL - let _ = Foo::<{ faz::<'b>(&()) }>;
393+ LL + let _ = Foo::<{ faz(&()) }>;
394+ |
363395
364396error: aborting due to 36 previous errors
365397
0 commit comments