rust/tests/ui/const-generics/late-bound-vars/in_closure.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
522 B
Plaintext
Raw Normal View History

error: cannot capture late-bound lifetime in constant
2023-09-02 17:53:59 -05:00
--> $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
2023-09-02 17:53:59 -05:00
--> $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