summary refs log tree commit diff
path: root/src/test/ui/const-generics/issues/issue-71611.rs
blob: 9b8e8be6bc6fc72124b9f5008a83ba19eeee0fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// revisions: full min
#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]
#![cfg_attr(min, feature(min_const_generics))]

fn func<A, const F: fn(inner: A)>(outer: A) {
    //~^ 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() {}