2020-08-09 06:19:57 +00:00
|
|
|
error: constant expression depends on a generic parameter
|
2020-11-17 10:44:21 +00:00
|
|
|
--> $DIR/array-size-in-generic-struct-param.rs:8:38
|
2020-08-09 06:19:57 +00:00
|
|
|
|
|
|
|
|
LL | struct ArithArrayLen<const N: usize>([u32; 0 + N]);
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this may fail depending on what value the parameter takes
|
|
|
|
|
|
|
|
error: constant expression depends on a generic parameter
|
2020-11-17 10:44:21 +00:00
|
|
|
--> $DIR/array-size-in-generic-struct-param.rs:19:10
|
2020-08-09 06:19:57 +00:00
|
|
|
|
|
|
|
|
LL | arr: [u8; CFG.arr_size],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this may fail depending on what value the parameter takes
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|