1 error[E0770]: the type of const parameters must not depend on other generic parameters
2 --> $DIR/issue-71381.rs:15:82
4 LL | pub fn call_me<Args: Sized, const IDX: usize, const FN: unsafe extern "C" fn(Args)>(&self) {
5 | ^^^^ the type must not depend on the parameter `Args`
7 error[E0770]: the type of const parameters must not depend on other generic parameters
8 --> $DIR/issue-71381.rs:24:40
10 LL | const FN: unsafe extern "C" fn(Args),
11 | ^^^^ the type must not depend on the parameter `Args`
13 error: using function pointers as const generic parameters is forbidden
14 --> $DIR/issue-71381.rs:15:61
16 LL | pub fn call_me<Args: Sized, const IDX: usize, const FN: unsafe extern "C" fn(Args)>(&self) {
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
19 error: using function pointers as const generic parameters is forbidden
20 --> $DIR/issue-71381.rs:24:19
22 LL | const FN: unsafe extern "C" fn(Args),
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
25 error: aborting due to 4 previous errors
27 For more information about this error, try `rustc --explain E0770`.