@@ -227,7 +227,11 @@ note: the late bound lifetime parameter is introduced here
227
227
|
228
228
LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
229
229
| ^^
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
+ |
231
235
232
236
error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
233
237
--> $DIR/const-arg-in-const-arg.rs:21:23
@@ -240,7 +244,11 @@ note: the late bound lifetime parameter is introduced here
240
244
|
241
245
LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
242
246
| ^^
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
+ |
244
252
245
253
error[E0747]: unresolved item provided when a constant was expected
246
254
--> $DIR/const-arg-in-const-arg.rs:38:24
@@ -264,7 +272,11 @@ note: the late bound lifetime parameter is introduced here
264
272
|
265
273
LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
266
274
| ^^
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
+ |
268
280
269
281
error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
270
282
--> $DIR/const-arg-in-const-arg.rs:44:24
@@ -277,7 +289,11 @@ note: the late bound lifetime parameter is introduced here
277
289
|
278
290
LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
279
291
| ^^
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
+ |
281
297
282
298
error: constant expression depends on a generic parameter
283
299
--> $DIR/const-arg-in-const-arg.rs:25:17
@@ -309,7 +325,11 @@ note: the late bound lifetime parameter is introduced here
309
325
|
310
326
LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
311
327
| ^^
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
+ |
313
333
314
334
error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
315
335
--> $DIR/const-arg-in-const-arg.rs:33:23
@@ -322,7 +342,11 @@ note: the late bound lifetime parameter is introduced here
322
342
|
323
343
LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
324
344
| ^^
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
+ |
326
350
327
351
error[E0747]: unresolved item provided when a constant was expected
328
352
--> $DIR/const-arg-in-const-arg.rs:49:27
@@ -346,7 +370,11 @@ note: the late bound lifetime parameter is introduced here
346
370
|
347
371
LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
348
372
| ^^
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
+ |
350
378
351
379
error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
352
380
--> $DIR/const-arg-in-const-arg.rs:55:27
@@ -359,7 +387,11 @@ note: the late bound lifetime parameter is introduced here
359
387
|
360
388
LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
361
389
| ^^
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
+ |
363
395
364
396
error: aborting due to 36 previous errors
365
397
0 commit comments