mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-30 21:17:44 +00:00
14 lines
370 B
Plaintext
14 lines
370 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
|
|
|