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.