blob: 2502d47eb4628805f587a8c444ec012aacfb77cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//@ run-rustfix
#![feature(generic_const_exprs, adt_const_params)]
#![allow(incomplete_features, dead_code)]
struct FieldElement<const N: &'static str> where [(); num_limbs(N)]: {
n: [u64; num_limbs(N)],
//~^ ERROR unconstrained generic constant
}
const fn num_limbs(_: &str) -> usize {
0
}
fn main() {}
|