2020-06-27 20:34:16 +09:00
|
|
|
#![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
|
2020-07-08 22:16:18 +02:00
|
|
|
//~| ERROR: the type of const parameters must not depend on other generic parameters
|
2020-06-27 20:34:16 +09:00
|
|
|
F(outer);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|