summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issues/issue-90455.rs
blob: a580410cf37efc779e46b18a39fb5068f9f13d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![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() {}