blob: d311e1c0bae01c362d61f5cb509dd7ac3e34447e (
plain)
1
2
3
4
5
6
7
8
9
10
|
error: constant expression depends on a generic parameter
--> $DIR/generic-sum-in-array-length.rs:7:45
|
LL | fn foo<const A: usize, const B: usize>(bar: [usize; A + B]) {}
| ^^^^^^^^^^^^^^
|
= note: this may fail depending on what value the parameter takes
error: aborting due to previous error
|