avoid duplicate error string
This commit is contained in:
parent
1c9952f4dd
commit
4e2d420ac5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue