2020-08-26 05:22:55 -05:00
|
|
|
//@ revisions: full min
|
2021-08-30 03:59:53 -05:00
|
|
|
#![cfg_attr(full, feature(adt_const_params))]
|
2020-08-26 05:22:55 -05:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2020-06-27 06:34:16 -05:00
|
|
|
|
|
|
|
fn func<A, const F: fn(inner: A)>(outer: A) {
|
2024-01-10 04:31:06 -06:00
|
|
|
//~^ ERROR: the type of const parameters must not depend on other generic parameters
|
2024-05-28 06:38:30 -05:00
|
|
|
//[min]~| ERROR: using function pointers as const generic parameters is forbidden
|
2020-06-27 06:34:16 -05:00
|
|
|
F(outer);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|