2021-08-27 11:04:57 -05:00
|
|
|
error: unconstrained generic constant
|
|
|
|
--> $DIR/array-size-in-generic-struct-param.rs:8:38
|
|
|
|
|
|
|
|
|
LL | struct ArithArrayLen<const N: usize>([u32; 0 + N]);
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try adding a `where` bound using this expression: `where [(); 0 + N]:`
|
|
|
|
|
|
|
|
error: overly complex generic constant
|
|
|
|
--> $DIR/array-size-in-generic-struct-param.rs:19:15
|
|
|
|
|
|
|
|
|
LL | arr: [u8; CFG.arr_size],
|
2023-01-16 14:21:29 -06:00
|
|
|
| ^^^^^^^^^^^^ field access is not supported in generic constants
|
2021-08-27 11:04:57 -05:00
|
|
|
|
|
|
|
|
= help: consider moving this anonymous constant into a `const` function
|
2021-09-27 23:10:33 -05:00
|
|
|
= note: this operation may be supported in the future
|
2021-08-27 11:04:57 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|