Function rustc_typeck::traits::wf::trait_obligations[−][src]

pub fn trait_obligations(
    infcx: &InferCtxt<'a, 'tcx>,
    param_env: ParamEnv<'tcx>,
    body_id: HirId,
    trait_ref: &TraitRef<'tcx>,
    span: Span,
    item: Option<&'tcx Item<'tcx>>
) -> Vec<Obligation<'tcx, Predicate<'tcx>>, Global>
Expand description

Returns the obligations that make this trait reference well-formed. For example, if there is a trait Set defined like trait Set<K:Eq>, then the trait reference Foo: Set<Bar> is WF if Bar: Eq.