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