Function rustc_typeck::check::callee::check_legal_trait_for_method_call[][src]

pub fn check_legal_trait_for_method_call(
    tcx: TyCtxt,
    span: Span,
    trait_id: DefId
)
🔬 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?

Check that it is legal to call methods of the trait corresponding to trait_id (this only cares about the trait, not the specific method that is called)