Name the right expected and actual return lifetimes
This commit is contained in:
parent
371c23fe34
commit
3c8eb4eac4
@ -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
|
||||
));
|
||||
},
|
||||
_ => {
|
||||
|
Loading…
Reference in New Issue
Block a user