rustc_ast_passes::ast_validation

Function validate_generic_param_order

Source
fn validate_generic_param_order(
    dcx: DiagCtxtHandle<'_>,
    generics: &[GenericParam],
    span: Span,
)
Expand description

Checks that generic parameters are in the correct order, which is lifetimes, then types and then consts. (<'a, T, const N: usize>)