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