summary refs log tree commit diff
path: root/src/test/ui/const-generics/generic-function-call-in-array-length.full.stderr
blob: 43b42d82d0c45908219029b6fcbeeacc725561d6 (plain)
1
2
3
4
5
6
7
8
9
10
error: constant expression depends on a generic parameter
  --> $DIR/generic-function-call-in-array-length.rs:9:29
   |
LL | fn bar<const N: usize>() -> [u32; foo(N)] {
   |                             ^^^^^^^^^^^^^
   |
   = note: this may fail depending on what value the parameter takes

error: aborting due to previous error