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`
8 = note: use #![feature(const_generics)] and #![feature(const_evaluatable_checked)] to allow generic const expressions
10 error: generic parameters may not be used in const operations
11 --> $DIR/generic-sum-in-array-length.rs:7:57
13 LL | fn foo<const A: usize, const B: usize>(bar: [usize; A + B]) {}
14 | ^ cannot perform const operation using `B`
16 = help: const parameters may only be used as standalone arguments, i.e. `B`
17 = note: use #![feature(const_generics)] and #![feature(const_evaluatable_checked)] to allow generic const expressions
19 error: aborting due to 2 previous errors