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.