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