summary refs log tree commit diff
path: root/src/test/ui/const_evaluatable/needs_where_clause.stderr
blob: e991c508c03f38aaa4b455381ee7030476c6ed7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: unconstrained generic constant
  --> $DIR/needs_where_clause.rs:11:6
   |
LL |   b: [f32; complex_maths::<T>(N)],
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: try adding a `where` bound using this expression: where [u8; complex_maths::<T>(N)]: Sized
  --> $DIR/needs_where_clause.rs:11:12
   |
LL |   b: [f32; complex_maths::<T>(N)],
   |            ^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error