rust/tests/ui/const-generics/issues/issue-71611.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
363 B
Rust
Raw Normal View History

// revisions: full min
#![cfg_attr(full, feature(adt_const_params))]
#![cfg_attr(full, allow(incomplete_features))]
2020-06-27 06:34:16 -05:00
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 06:34:16 -05:00
F(outer);
}
fn main() {}