Function rustc::traits::project::assemble_candidates_from_trait_def [−][src]
fn assemble_candidates_from_trait_def<'cx, 'gcx, 'tcx>(
selcx: &mut SelectionContext<'cx, 'gcx, 'tcx>,
obligation: &Obligation<'tcx, ProjectionTy<'tcx>>,
obligation_trait_ref: &TraitRef<'tcx>,
candidate_set: &mut ProjectionTyCandidateSet<'tcx>
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
In the case of a nested projection like <::FooT as Bar>::BarT, we may find
that the definition of Foo
has some clues:
trait Foo { type FooT : Bar<BarT=i32> }
Here, for example, we could conclude that the result is i32
.