diff --git a/src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs b/src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs index 422b5c2a39d..ca208a43431 100644 --- a/src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs +++ b/src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs @@ -453,7 +453,7 @@ impl<'tcx> RegionInferenceContext<'tcx> { diag.span_label(span, format!( "{} was supposed to return data with lifetime `{}` but it is returning \ data with lifetime `{}`", - mir_def_name, fr_name, outlived_fr_name, + mir_def_name, outlived_fr_name, fr_name )); }, _ => {