Files
rust/src/test/ui/const-generics/issues/issue-71611.rs

11 lines
306 B
Rust
Raw Normal View History

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
//~| 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() {}