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: aborting due to 2 previous errors 18 19For more information about this error, try `rustc --explain E0770`.