1
Fork 0

rustc_borrowck: make some suggestion about static lifetimes translatable

This commit is contained in:
Pavel Grigorenko 2024-08-09 00:12:41 +03:00
parent 446e03e3c9
commit 1b6cc24c20
2 changed files with 8 additions and 3 deletions

View file

@ -80,6 +80,9 @@ borrowck_higher_ranked_subtype_error =
borrowck_lifetime_constraints_error =
lifetime may not live long enough
borrowck_limitations_implies_static =
due to current limitations in the borrow checker, this implies a `'static` lifetime
borrowck_move_closure_suggestion =
consider adding 'move' keyword before the nested closure
@ -169,6 +172,9 @@ borrowck_partial_var_move_by_use_in_coroutine =
*[false] moved
} due to use in coroutine
borrowck_restrict_to_static =
consider restricting the type parameter to the `'static` lifetime
borrowck_returned_async_block_escaped =
returns an `async` block that contains a reference to a captured variable, which then escapes the closure body