2022-08-10 02:42:10 -05:00
|
|
|
borrowck_move_unsized =
|
2022-06-22 23:43:01 -05:00
|
|
|
cannot move a value of type `{$ty}`
|
|
|
|
.label = the size of `{$ty}` cannot be statically determined
|
|
|
|
|
2022-08-10 02:42:10 -05:00
|
|
|
borrowck_higher_ranked_lifetime_error =
|
2022-06-22 23:43:01 -05:00
|
|
|
higher-ranked lifetime error
|
|
|
|
|
2022-08-10 02:42:10 -05:00
|
|
|
borrowck_could_not_prove =
|
2022-06-22 23:43:01 -05:00
|
|
|
could not prove `{$predicate}`
|
|
|
|
|
2022-08-10 02:42:10 -05:00
|
|
|
borrowck_could_not_normalize =
|
2022-06-22 23:43:01 -05:00
|
|
|
could not normalize `{$value}`
|
|
|
|
|
2022-08-10 02:42:10 -05:00
|
|
|
borrowck_higher_ranked_subtype_error =
|
2022-06-22 23:43:01 -05:00
|
|
|
higher-ranked subtype error
|
2022-08-17 04:35:17 -05:00
|
|
|
|
2022-08-17 04:45:35 -05:00
|
|
|
borrowck_generic_does_not_live_long_enough =
|
2022-08-17 04:35:17 -05:00
|
|
|
`{$kind}` does not live long enough
|
2022-08-25 21:32:59 -05:00
|
|
|
|
|
|
|
borrowck_move_borrowed =
|
|
|
|
cannot move out of `{$desc}` beacause it is borrowed
|
|
|
|
|
|
|
|
borrowck_var_does_not_need_mut =
|
|
|
|
variable does not need to be mutable
|
|
|
|
.suggestion = remove this `mut`
|
|
|
|
|
|
|
|
borrowck_const_not_used_in_type_alias =
|
|
|
|
const parameter `{$ct}` is part of concrete type but not used in parameter list for the `impl Trait` type alias
|
|
|
|
|
|
|
|
borrowck_var_cannot_escape_closure =
|
|
|
|
captured variable cannot escape `FnMut` closure body
|
|
|
|
.note = `FnMut` closures only have access to their captured variables while they are executing...
|
|
|
|
.cannot_escape = ...therefore, they cannot allow references to captured variables to escape
|
|
|
|
|
|
|
|
borrowck_var_here_defined = variable defined here
|
|
|
|
|
|
|
|
borrowck_var_here_captured = variable captured here
|
|
|
|
|
|
|
|
borrowck_closure_inferred_mut = inferred to be a `FnMut` closure
|
|
|
|
|
|
|
|
borrowck_returned_closure_escaped =
|
|
|
|
returns a closure that contains a reference to a captured variable, which then escapes the closure body
|
|
|
|
|
|
|
|
borrowck_returned_async_block_escaped =
|
|
|
|
returns an `async` block that contains a reference to a captured variable, which then escapes the closure body
|
|
|
|
|
|
|
|
borrowck_returned_ref_escaped =
|
|
|
|
returns a reference to a captured variable which escapes the closure body
|
|
|
|
|
|
|
|
borrowck_lifetime_constraints_error =
|
|
|
|
lifetime may not live long enough
|
|
|
|
|
|
|
|
borrowck_returned_lifetime_wrong =
|
|
|
|
{$mir_def_name} was supposed to return data with lifetime `{$outlived_fr_name}` but it is returning data with lifetime `{$fr_name}`
|
|
|
|
|
|
|
|
borrowck_returned_lifetime_short =
|
|
|
|
{$category_desc}requires that `{$free_region_name}` must outlive `{$outlived_fr_name}`
|
|
|
|
|
|
|
|
borrowck_used_impl_require_static =
|
|
|
|
the used `impl` has a `'static` requirement
|