error: constant expression depends on a generic parameter --> $DIR/generic-function-call-in-array-length.rs:9:29 | LL | fn bar() -> [u32; foo(N)] { | ^^^^^^^^^^^^^ | = note: this may fail depending on what value the parameter takes error: aborting due to previous error