pub trait InferCtxtErrorExt<'tcx> {
// Required method
fn err_ctxt(&self) -> TypeErrCtxt<'_, 'tcx>;
}Required Methods§
Sourcefn err_ctxt(&self) -> TypeErrCtxt<'_, 'tcx>
fn err_ctxt(&self) -> TypeErrCtxt<'_, 'tcx>
Creates a TypeErrCtxt for emitting various inference errors.
During typeck, use FnCtxt::err_ctxt instead.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".