Name the right expected and actual return lifetimes

This commit is contained in:
Matthew Jasper 2018-08-08 22:44:54 +01:00
parent 371c23fe34
commit 3c8eb4eac4

View File

@ -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
));
},
_ => {