Function rustc::middle::typeck::require_same_types[src]
pub fn require_same_types(tcx: &ctxt, maybe_infcx: Option<&InferCtxt>, t1_is_expected: bool, span: Span, t1: t, t2: t, msg: || -> String) -> bool
pub fn require_same_types(tcx: &ctxt, maybe_infcx: Option<&InferCtxt>, t1_is_expected: bool, span: Span, t1: t, t2: t, msg: || -> String) -> bool
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).