better lifetime error message
This commit is contained in:
parent
daa53a52a2
commit
2f8a77445f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user