]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_messages/locales/en-US/borrowck.ftl
Auto merge of #102935 - ajtribick:display-float-0.5-fixed-0, r=scottmcm
[rust.git] / compiler / rustc_error_messages / locales / en-US / borrowck.ftl
1 borrowck_move_unsized =
2     cannot move a value of type `{$ty}`
3     .label = the size of `{$ty}` cannot be statically determined
4
5 borrowck_higher_ranked_lifetime_error =
6     higher-ranked lifetime error
7
8 borrowck_could_not_prove =
9     could not prove `{$predicate}`
10
11 borrowck_could_not_normalize =
12     could not normalize `{$value}`
13
14 borrowck_higher_ranked_subtype_error =
15     higher-ranked subtype error
16
17 borrowck_generic_does_not_live_long_enough =
18     `{$kind}` does not live long enough
19
20 borrowck_move_borrowed =
21     cannot move out of `{$desc}` beacause it is borrowed
22
23 borrowck_var_does_not_need_mut =
24     variable does not need to be mutable
25     .suggestion = remove this `mut`
26
27 borrowck_const_not_used_in_type_alias =
28     const parameter `{$ct}` is part of concrete type but not used in parameter list for the `impl Trait` type alias
29
30 borrowck_var_cannot_escape_closure =
31     captured variable cannot escape `FnMut` closure body
32     .note = `FnMut` closures only have access to their captured variables while they are executing...
33     .cannot_escape = ...therefore, they cannot allow references to captured variables to escape
34
35 borrowck_var_here_defined = variable defined here
36
37 borrowck_var_here_captured = variable captured here
38
39 borrowck_closure_inferred_mut =  inferred to be a `FnMut` closure
40
41 borrowck_returned_closure_escaped =
42     returns a closure that contains a reference to a captured variable, which then escapes the closure body
43
44 borrowck_returned_async_block_escaped =
45     returns an `async` block that contains a reference to a captured variable, which then escapes the closure body
46
47 borrowck_returned_ref_escaped =
48     returns a reference to a captured variable which escapes the closure body
49
50 borrowck_lifetime_constraints_error =
51     lifetime may not live long enough
52
53 borrowck_returned_lifetime_wrong =
54     {$mir_def_name} was supposed to return data with lifetime `{$outlived_fr_name}` but it is returning data with lifetime `{$fr_name}`
55
56 borrowck_returned_lifetime_short =
57     {$category_desc}requires that `{$free_region_name}` must outlive `{$outlived_fr_name}`
58
59 borrowck_used_impl_require_static =
60     the used `impl` has a `'static` requirement
61
62 borrowck_capture_kind_label =
63     capture is {$kind_desc} because of use here
64
65 borrowck_var_borrow_by_use_place_in_generator =
66     borrow occurs due to use of {$place} in closure in generator
67
68 borrowck_var_borrow_by_use_place_in_closure =
69     borrow occurs due to use of {$place} in closure
70
71 borrowck_var_borrow_by_use_place =
72     borrow occurs due to use of {$place}
73
74 borrowck_borrow_due_to_use_generator =
75     borrow occurs due to use in generator
76
77 borrowck_use_due_to_use_generator =
78     use occurs due to use in generator
79
80 borrowck_assign_due_to_use_generator =
81     assign occurs due to use in generator
82
83 borrowck_assign_part_due_to_use_generator =
84     assign to part occurs due to use in generator
85
86 borrowck_borrow_due_to_use_closure =
87     borrow occurs due to use in closure
88
89 borrowck_use_due_to_use_closure =
90     use occurs due to use in closure
91
92 borrowck_assign_due_to_use_closure =
93     assign occurs due to use in closure
94
95 borrowck_assign_part_due_to_use_closure =
96     assign to part occurs due to use in closure
97
98 borrowck_capture_immute =
99     capture is immutable because of use here
100
101 borrowck_capture_mut =
102     capture is mutable because of use here
103
104 borrowck_capture_move =
105     capture is moved because of use here
106
107 borrowck_var_move_by_use_place_in_generator =
108     move occurs due to use of {$place} in generator
109
110 borrowck_var_move_by_use_place_in_closure =
111     move occurs due to use of {$place} in closure
112
113 borrowck_cannot_move_when_borrowed =
114     cannot move out of {$place ->
115         [value] value
116         *[other] {$place}
117     } because it is borrowed
118     .label = borrow of {$borrow_place ->
119         [value] value
120         *[other] {$borrow_place}
121     } occurs here
122     .move_label = move out of {$value_place ->
123         [value] value
124         *[other] {$value_place}
125     } occurs here