Skip to content

Can't compile because of const #1

@yangfengzzz

Description

@yangfengzzz

error[E0741]: `&'static [for<'a> fn(&'a [derivatives::Arg]) -> std::string::String]` can't be used as a const parameter type
   --> core/src/derivatives/mod.rs:222:70
    |
222 | pub fn rgd<const DEFAULT: &'static str, const TRANSLATION_FUNCTIONS: &'static [DFn]>(
    |                                                                      ^^^^^^^^^^^^^^
    |
    = note: `for<'a> fn(&'a [derivatives::Arg]) -> std::string::String` must implement `ConstParamTy`, but it does not
    = note: `[for<'a> fn(&'a [derivatives::Arg]) -> std::string::String]` must implement `ConstParamTy`, but it does not


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions