Skip to content

Commit

Permalink
Name the right expected and actual return lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjasper committed Aug 14, 2018
1 parent 371c23f commit 3c8eb4e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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
));
},
_ => {
Expand Down

0 comments on commit 3c8eb4e

Please sign in to comment.