rustc_hir_analysis::hir_ty_lowering::generics

Function generic_arg_mismatch_err

Source
fn generic_arg_mismatch_err(
    cx: &dyn HirTyLowerer<'_>,
    arg: &GenericArg<'_>,
    param: &GenericParamDef,
    possible_ordering_error: bool,
    help: Option<String>,
) -> ErrorGuaranteed
Expand description

Report an error that a generic argument did not match the generic parameter that was expected.