Function rustc::middle::typeck::check::demand::suptype_with_fn[src]
pub fn suptype_with_fn(fcx: &FnCtxt, sp: Span, b_is_expected: bool, ty_a: t, ty_b: t, handle_err: |Span, t, t, &type_err|)
pub fn suptype_with_fn(fcx: &FnCtxt, sp: Span, b_is_expected: bool, ty_a: t, ty_b: t, handle_err: |Span, t, t, &type_err|)
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).