rust/tests/ui/const-generics/late-bound-vars/in_closure.stderr
2023-09-05 20:20:55 +00:00

21 lines
522 B
Plaintext

error: cannot capture late-bound lifetime in constant
--> $DIR/in_closure.rs:16:29
|
LL | fn test<'a>() {
| -- lifetime defined here
LL | let _ = || {
LL | let _: [u8; inner::<'a>()];
| ^^
error: cannot capture late-bound lifetime in constant
--> $DIR/in_closure.rs:17:29
|
LL | fn test<'a>() {
| -- lifetime defined here
...
LL | let _ = [0; inner::<'a>()];
| ^^
error: aborting due to 2 previous errors