]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/generic-function-call-in-array-length.full.stderr
Rollup merge of #75209 - Hirrolot:suggest-macro-imports, r=estebank
[rust.git] / src / test / ui / const-generics / generic-function-call-in-array-length.full.stderr
1 error: constant expression depends on a generic parameter
2   --> $DIR/generic-function-call-in-array-length.rs:9:29
3    |
4 LL | fn bar<const N: usize>() -> [u32; foo(N)] {
5    |                             ^^^^^^^^^^^^^
6    |
7    = note: this may fail depending on what value the parameter takes
8
9 error: aborting due to previous error
10