# Function rustc_hir_analysis::hir_ty_lowering::generics::check_generic_arg_count_for_call

source ·

    pub fn check_generic_arg_count_for_call(
        tcx: TyCtxt<'_>,
        def_id: DefId,
        generics: &Generics,
        seg: &PathSegment<'_>,
        is_method_call: IsMethodCall,
    ) -> GenericArgCountResult

Expand description

Checks that the correct number of generic arguments have been provided. Used specifically for function calls.