fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0770]: the type of const parameters must not depend on other generic parameters 2 --> $DIR/issue-71381.rs:14:82 3 | 4LL | 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` 6 | 7 = note: type parameters may not be used in the type of const parameters 8 9error[E0770]: the type of const parameters must not depend on other generic parameters 10 --> $DIR/issue-71381.rs:23:40 11 | 12LL | const FN: unsafe extern "C" fn(Args), 13 | ^^^^ the type must not depend on the parameter `Args` 14 | 15 = note: type parameters may not be used in the type of const parameters 16 17error: using function pointers as const generic parameters is forbidden 18 --> $DIR/issue-71381.rs:14:61 19 | 20LL | pub fn call_me<Args: Sized, const IDX: usize, const FN: unsafe extern "C" fn(Args)>(&self) { 21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 22 | 23 = note: the only supported types are integers, `bool` and `char` 24 25error: using function pointers as const generic parameters is forbidden 26 --> $DIR/issue-71381.rs:23:19 27 | 28LL | const FN: unsafe extern "C" fn(Args), 29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 30 | 31 = note: the only supported types are integers, `bool` and `char` 32 33error: aborting due to 4 previous errors 34 35For more information about this error, try `rustc --explain E0770`.