Function rustc_hir_typeck::report_unexpected_variant_res

source ยท
pub(crate) fn report_unexpected_variant_res(
    tcx: TyCtxt<'_>,
    res: Res,
    qpath: &QPath<'_>,
    span: Span,
    err_code: ErrCode,
    expected: &str
) -> ErrorGuaranteed