pub fn check_function_signature<'tcx>(
    tcx: TyCtxt<'tcx>,
    cause: ObligationCause<'tcx>,
    fn_id: DefId,
    expected_sig: PolyFnSig<'tcx>
) -> Result<(), ErrorGuaranteed>