1 error: generic parameters may not be used in const operations
2 --> $DIR/generic-function-call-in-array-length.rs:9:39
4 LL | fn bar<const N: usize>() -> [u32; foo(N)] {
5 | ^ cannot perform const operation using `N`
7 = help: const parameters may only be used as standalone arguments, i.e. `N`
9 error: generic parameters may not be used in const operations
10 --> $DIR/generic-function-call-in-array-length.rs:12:13
13 | ^ cannot perform const operation using `N`
15 = help: const parameters may only be used as standalone arguments, i.e. `N`
17 error: aborting due to 2 previous errors