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>