blob: 06ff38dec66c74e8c157568fc04c4abb3d23c2cc (
plain)
1
2
3
4
5
6
7
8
9
10
|
#![feature(const_generics)]
#![allow(incomplete_features)]
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() {}
|