Skip to content

Commit 3c8eb4e

Browse files
committed
Name the right expected and actual return lifetimes
1 parent 371c23f commit 3c8eb4e

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_mir/borrow_check/nll/region_infer/error_reporting

1 file changed

+1
-1
lines changed

src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
453453
diag.span_label(span, format!(
454454
"{} was supposed to return data with lifetime `{}` but it is returning \
455455
data with lifetime `{}`",
456-
mir_def_name, fr_name, outlived_fr_name,
456+
mir_def_name, outlived_fr_name, fr_name
457457
));
458458
},
459459
_ => {

0 commit comments

Comments
 (0)