about summary refs log tree commit diff
path: root/tests/ui/const-generics/generic_const_exprs/needs_where_clause.stderr
blob: c83e859ac7972fa2901740674e3a07b8fb376d39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: unconstrained generic constant
  --> $DIR/needs_where_clause.rs:11:6
   |
LL |   b: [f32; complex_maths::<T>(N)],
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: try adding a `where` bound
   |
LL | struct Example<T, const N: usize> where [(); complex_maths::<T>(N)]: {
   |                                   ++++++++++++++++++++++++++++++++++

error: aborting due to 1 previous error