summary refs log tree commit diff
path: root/tests/ui/generic-const-items/evaluatable-bounds.stderr
blob: ca26d6336588daadc5b713d769fbcd06f9ef252e (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