avoid duplicate error string

This commit is contained in:
lcnr 2025-08-07 10:57:51 +02:00
parent 1c9952f4dd
commit 4e2d420ac5

View file

@ -676,7 +676,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
});
if let Some(span) = predicate_span {
err.span_note(span, "due to current limitations in the borrow checker, this implies a `'static` lifetime");
err.span_note(span, fluent::borrowck_limitations_implies_static);
}
}