1 error: generic parameters must not be used inside of non-trivial constant values
2 --> $DIR/generic-sum-in-array-length.rs:3:53
4 LL | fn foo<const A: usize, const B: usize>(bar: [usize; A + B]) {}
5 | ^ non-trivial anonymous constants must not depend on the parameter `A`
7 = help: it is currently only allowed to use either `A` or `{ A }` as generic constants
9 error: generic parameters must not be used inside of non-trivial constant values
10 --> $DIR/generic-sum-in-array-length.rs:3:57
12 LL | fn foo<const A: usize, const B: usize>(bar: [usize; A + B]) {}
13 | ^ non-trivial anonymous constants must not depend on the parameter `B`
15 = help: it is currently only allowed to use either `B` or `{ B }` as generic constants
17 error: aborting due to 2 previous errors