summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/late-bound-vars/in_closure.stderr
blob: e15496454a025baa425ac3ed6b7793dfd96b7d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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