about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2018-12-03 14:40:04 -0600
committerMark Mansi <markm@cs.wisc.edu>2019-01-17 20:39:06 -0600
commit2f8a77445f8b8bb3322060ea386b50afe52d00e8 (patch)
tree5cd2e5e623fd53f06f3529a14a05d8aae680cff0
parentdaa53a52a2667533d5fe59bfcc5b8614b79c3d31 (diff)
downloadrust-2f8a77445f8b8bb3322060ea386b50afe52d00e8.tar.gz
rust-2f8a77445f8b8bb3322060ea386b50afe52d00e8.zip
better lifetime error message
-rw-r--r--src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs2
1 files changed, 1 insertions, 1 deletions
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 77c8a896b04..2a858bdd601 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
@@ -505,7 +505,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
     ) {
         let mut diag = infcx.tcx.sess.struct_span_err(
             span,
-            "unsatisfied lifetime constraints", // FIXME
+            "lifetime may not live long enough"
         );
 
         let counter = &mut 1;