about summary refs log tree commit diff
path: root/src/test/ui/const-generics/generic-sum-in-array-length.full.stderr
blob: c13882e7fe11619e1d978a97679dde13fdbedf6a (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:6: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