diff options
| author | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-09 00:12:41 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-10 14:32:55 +0300 |
| commit | 1b6cc24c20557e1a34a5c889bd771924d5c572c5 (patch) | |
| tree | a385941d10224914aa0870ff84c78abec2f5ab82 /compiler/rustc_borrowck/messages.ftl | |
| parent | 446e03e3c92dedcf90aea3069e40d19dae6772f2 (diff) | |
| download | rust-1b6cc24c20557e1a34a5c889bd771924d5c572c5.tar.gz rust-1b6cc24c20557e1a34a5c889bd771924d5c572c5.zip | |
rustc_borrowck: make some suggestion about static lifetimes translatable
Diffstat (limited to 'compiler/rustc_borrowck/messages.ftl')
| -rw-r--r-- | compiler/rustc_borrowck/messages.ftl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_borrowck/messages.ftl b/compiler/rustc_borrowck/messages.ftl index 090bd2293d3..7eed4e379c8 100644 --- a/compiler/rustc_borrowck/messages.ftl +++ b/compiler/rustc_borrowck/messages.ftl @@ -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 |
