fn report_unexpected_variant_res(tcx: TyCtxt<'_>, res: Res, span: Span)