better lifetime error message

This commit is contained in:
Mark Mansi 2018-12-03 14:40:04 -06:00
parent daa53a52a2
commit 2f8a77445f

View File

@ -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;