mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
12 lines
369 B
Rust
12 lines
369 B
Rust
//@ revisions: full min
|
|
#![cfg_attr(full, feature(adt_const_params))]
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
|
|
|
fn func<A, const F: fn(inner: A)>(outer: A) {
|
|
//~^ ERROR: the type of const parameters must not depend on other generic parameters
|
|
//[min]~| ERROR: using function pointers as const generic parameters is forbidden
|
|
F(outer);
|
|
}
|
|
|
|
fn main() {}
|