rust/tests/ui/generic-const-items/evaluatable-bounds.stderr

14 lines
371 B
Plaintext

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