2021-01-30 03:45:18 +00:00
|
|
|
error: unconstrained generic constant
|
|
|
|
--> $DIR/needs_where_clause.rs:11:6
|
|
|
|
|
|
|
|
|
LL | b: [f32; complex_maths::<T>(N)],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2024-03-21 00:03:59 +00:00
|
|
|
help: try adding a `where` bound
|
|
|
|
|
|
|
|
|
LL | struct Example<T, const N: usize> where [(); complex_maths::<T>(N)]: {
|
|
|
|
| ++++++++++++++++++++++++++++++++++
|
2021-01-30 03:45:18 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-01-30 03:45:18 +00:00
|
|
|
|