rust/tests/ui/const-generics/issues/issue-90455.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
373 B
Plaintext
Raw Normal View History

2021-11-03 15:36:38 +01:00
error: unconstrained generic constant
--> $DIR/issue-90455.rs:6:8
2021-11-03 15:36:38 +01:00
|
LL | n: [u64; num_limbs(N)],
| ^^^^^^^^^^^^^^^^^^^
|
help: try adding a `where` bound
|
LL | struct FieldElement<const N: &'static str> where [(); num_limbs(N)]: {
| +++++++++++++++++++++++++
2021-11-03 15:36:38 +01:00
error: aborting due to 1 previous error
2021-11-03 15:36:38 +01:00