about summary refs log tree commit diff
path: root/tests/ui/generic-const-items/evaluatable-bounds.stderr
blob: 8bc4a3d236f3b4fcf3f66b6069844730c9fab4b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: unconstrained generic constant
  --> $DIR/evaluatable-bounds.rs:14:5
   |
LL |     const ARRAY: [i32; Self::LEN];
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: try adding a `where` bound
   |
LL |     const ARRAY: [i32; Self::LEN] where [(); Self::LEN]:;
   |                                   ++++++++++++++++++++++

error: aborting due to 1 previous error