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