mirror of
https://git.proxmox.com/git/rustc
synced 2025-06-03 09:21:12 +00:00
20 lines
509 B
Plaintext
20 lines
509 B
Plaintext
error: cannot capture late-bound lifetime in constant
|
|
--> $DIR/simple.rs:20:25
|
|
|
|
|
LL | fn test<'a>() {
|
|
| -- lifetime defined here
|
|
LL | let _: [u8; inner::<'a>()];
|
|
| ^^
|
|
|
|
error: cannot capture late-bound lifetime in constant
|
|
--> $DIR/simple.rs:21:25
|
|
|
|
|
LL | fn test<'a>() {
|
|
| -- lifetime defined here
|
|
LL | let _: [u8; inner::<'a>()];
|
|
LL | let _ = [0; inner::<'a>()];
|
|
| ^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|