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