14 lines
340 B
Rust
14 lines
340 B
Rust
//@ run-rustfix
|
|
#![feature(generic_const_exprs, unsized_const_params, 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() {}
|