[−][src]Function rustc_typeck::check::callee::check_legal_trait_for_method_call
pub fn check_legal_trait_for_method_call(
tcx: TyCtxt<'_>,
span: Span,
receiver: Option<Span>,
trait_id: DefId
)
Checks 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).