]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/generic-sum-in-array-length.full.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / generic-sum-in-array-length.full.stderr
1 error: constant expression depends on a generic parameter
2   --> $DIR/generic-sum-in-array-length.rs:7:45
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