Function rustc::middle::typeck::require_same_typesExperimental [-]  [+] [src]

pub fn require_same_types<'a, 'tcx>(tcx: &ctxt<'tcx>, maybe_infcx: Option<&InferCtxt<'a, 'tcx>>, t1_is_expected: bool, span: Span, t1: Ty<'tcx>, t2: Ty<'tcx>, msg: || -> String) -> bool