Skip to content

Commit 4e2d420

Browse files
committed
avoid duplicate error string
1 parent 1c9952f commit 4e2d420

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_borrowck/src/diagnostics

1 file changed

+1
-1
lines changed

compiler/rustc_borrowck/src/diagnostics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
676676
});
677677

678678
if let Some(span) = predicate_span {
679-
err.span_note(span, "due to current limitations in the borrow checker, this implies a `'static` lifetime");
679+
err.span_note(span, fluent::borrowck_limitations_implies_static);
680680
}
681681
}
682682

0 commit comments

Comments
 (0)