1 error: generic parameters may not be used in const operations
2 --> $DIR/generic-sum-in-array-length.rs:7:53
4 LL | fn foo<const A: usize, const B: usize>(bar: [usize; A + B]) {}
5 | ^ cannot perform const operation using `A`
7 = help: const parameters may only be used as standalone arguments, i.e. `A`
9 error: generic parameters may not be used in const operations
10 --> $DIR/generic-sum-in-array-length.rs:7:57
12 LL | fn foo<const A: usize, const B: usize>(bar: [usize; A + B]) {}
13 | ^ cannot perform const operation using `B`
15 = help: const parameters may only be used as standalone arguments, i.e. `B`
17 error: aborting due to 2 previous errors