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