2021-01-30 03:45:18 +00:00
|
|
|
error: unconstrained generic constant
|
|
|
|
--> $DIR/no_where_clause.rs:10:6
|
|
|
|
|
|
|
|
|
LL | b: [f32; complex_maths(N)],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2024-03-21 00:03:59 +00:00
|
|
|
help: try adding a `where` bound
|
|
|
|
|
|
|
|
|
LL | pub struct Example<const N: usize> where [(); complex_maths(N)]: {
|
|
|
|
| +++++++++++++++++++++++++++++
|
2021-01-30 03:45:18 +00:00
|
|
|
|
2024-02-09 12:17:55 +00:00
|
|
|
error: unconstrained generic constant
|
|
|
|
--> $DIR/no_where_clause.rs:18:15
|
|
|
|
|
|
|
|
|
LL | b: [0.; complex_maths(N)],
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2024-03-21 00:03:59 +00:00
|
|
|
help: try adding a `where` bound
|
|
|
|
|
|
|
|
|
LL | pub fn new() -> Self where [(); complex_maths(N)]: {
|
|
|
|
| +++++++++++++++++++++++++++++
|
2024-02-09 12:17:55 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2021-01-30 03:45:18 +00:00
|
|
|
|