rustc_trait_selection::error_reporting

Trait InferCtxtErrorExt

source
pub trait InferCtxtErrorExt<'tcx> {
    // Required method
    fn err_ctxt(&self) -> TypeErrCtxt<'_, 'tcx>;
}

Required Methods§

source

fn err_ctxt(&self) -> TypeErrCtxt<'_, 'tcx>

Creates a TypeErrCtxt for emitting various inference errors. During typeck, use FnCtxt::err_ctxt instead.

Implementors§

source§

impl<'tcx> InferCtxtErrorExt<'tcx> for InferCtxt<'tcx>