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

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

20 lines
509 B
Plaintext
Raw Normal View History

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
2023-05-05 15:42:51 -05:00