summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issues/issue-71611.rs
blob: c917f66818bad8f2ed5ad5accdd0db5a658e52e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// revisions: full min
#![cfg_attr(full, feature(adt_const_params))]
#![cfg_attr(full, allow(incomplete_features))]

fn func<A, const F: fn(inner: A)>(outer: A) {
    //[min]~^ ERROR: using function pointers as const generic parameters is forbidden
    //~^^ ERROR: the type of const parameters must not depend on other generic parameters
    F(outer);
}

fn main() {}