summary refs log tree commit diff
path: root/src/test/ui/const-generics/generic-function-call-in-array-length.full.stderr
blob: 2d19a58a1457b6862d1de6860de86361c2298cc3 (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:8: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