mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
13 lines
265 B
Rust
13 lines
265 B
Rust
#![feature(generic_const_exprs, adt_const_params)]
|
|
#![allow(incomplete_features)]
|
|
|
|
struct FieldElement<const N: &'static str> {
|
|
n: [u64; num_limbs(N)],
|
|
//~^ ERROR unconstrained generic constant
|
|
}
|
|
const fn num_limbs(_: &str) -> usize {
|
|
0
|
|
}
|
|
|
|
fn main() {}
|