1 infer_opaque_hidden_type =
2 opaque type's hidden type cannot be another opaque type from the same scope
3 .label = one of the two opaque types used here has to be outside its defining scope
4 .opaque_type = opaque type whose hidden type is being assigned
5 .hidden_type = opaque type being used as hidden type
7 infer_type_annotations_needed = {$source_kind ->
8 [closure] type annotations needed for the closure `{$source_name}`
9 [normal] type annotations needed for `{$source_name}`
10 *[other] type annotations needed
12 .label = type must be known at this point
14 infer_label_bad = {$bad_kind ->
15 *[other] cannot infer type
16 [more_info] cannot infer {$prefix_kind ->
17 *[type] type for {$prefix}
18 [const_with_param] the value of const parameter
19 [const] the value of the constant
20 } `{$name}`{$has_parent ->
21 [true] {" "}declared on the {$parent_prefix} `{$parent_name}`
26 infer_source_kind_subdiag_let = {$kind ->
27 [with_pattern] consider giving `{$name}` an explicit type
28 [closure] consider giving this closure parameter an explicit type
29 *[other] consider giving this pattern a type
31 [has_name] , where the {$prefix_kind ->
32 *[type] type for {$prefix}
33 [const_with_param] the value of const parameter
34 [const] the value of the constant
35 } `{$arg_name}` is specified
36 [underscore] , where the placeholders `_` are specified
40 infer_source_kind_subdiag_generic_label =
41 cannot infer {$is_type ->
48 [true] parameter `{$param_name}` declared on the {$parent_prefix} `{$parent_name}`
49 *[false] parameter {$param_name}
52 infer_source_kind_subdiag_generic_suggestion =
53 consider specifying the generic {$arg_count ->
58 infer_source_kind_fully_qualified =
59 try using a fully qualified path to specify the expected types
61 infer_source_kind_closure_return =
62 try giving this closure an explicit return type
64 # generator_kind may need to be translated
65 infer_need_type_info_in_generator =
66 type inside {$generator_kind ->
67 [async_block] `async` block
68 [async_closure] `async` closure
69 [async_fn] `async fn` body
70 *[generator] generator
71 } must be known in this context
74 infer_subtype = ...so that the {$requirement ->
75 [method_compat] method type is compatible with trait
76 [type_compat] associated type is compatible with trait
77 [const_compat] const is compatible with trait
78 [expr_assignable] expression is assignable
79 [if_else_different] `if` and `else` have incompatible types
80 [no_else] `if` missing an `else` returns `()`
81 [fn_main_correct_type] `main` function has the correct type
82 [fn_start_correct_type] #[start]` function has the correct type
83 [intristic_correct_type] intrinsic has the correct type
84 [method_correct_type] method receiver has the correct type
85 *[other] types are compatible
87 infer_subtype_2 = ...so that {$requirement ->
88 [method_compat] method type is compatible with trait
89 [type_compat] associated type is compatible with trait
90 [const_compat] const is compatible with trait
91 [expr_assignable] expression is assignable
92 [if_else_different] `if` and `else` have incompatible types
93 [no_else] `if` missing an `else` returns `()`
94 [fn_main_correct_type] `main` function has the correct type
95 [fn_start_correct_type] #[start]` function has the correct type
96 [intristic_correct_type] intrinsic has the correct type
97 [method_correct_type] method receiver has the correct type
98 *[other] types are compatible
101 infer_reborrow = ...so that reference does not outlive borrowed content
102 infer_reborrow_upvar = ...so that closure can access `{$name}`
103 infer_relate_object_bound = ...so that it can be closed over into an object
104 infer_data_borrowed = ...so that the type `{$name}` is not borrowed for too long
105 infer_reference_outlives_referent = ...so that the reference type `{$name}` does not outlive the data it points at
106 infer_relate_param_bound = ...so that the type `{$name}` will meet its required lifetime bounds{$continues ->
110 infer_relate_param_bound_2 = ...that is required by this bound
111 infer_relate_region_param_bound = ...so that the declared lifetime parameter bounds are satisfied
112 infer_compare_impl_item_obligation = ...so that the definition in impl matches the definition from the trait
116 infer_lifetime_mismatch = lifetime mismatch
118 infer_declared_different = this parameter and the return type are declared with different lifetimes...
119 infer_data_returned = ...but data{$label_var1_exists ->
120 [true] {" "}from `{$label_var1}`
124 infer_data_lifetime_flow = ...but data with one lifetime flows into the other here
125 infer_declared_multiple = this type is declared with multiple lifetimes...
126 infer_types_declared_different = these two types are declared with different lifetimes...
127 infer_data_flows = ...but data{$label_var1_exists ->
128 [true] -> {" "}from `{$label_var1}`
130 } flows{$label_var2_exists ->
131 [true] -> {" "}into `{$label_var2}`
135 infer_lifetime_param_suggestion = consider introducing a named lifetime parameter{$is_impl ->
136 [true] {" "}and update trait if needed
139 infer_lifetime_param_suggestion_elided = each elided lifetime in input position becomes a distinct lifetime
141 infer_region_explanation = {$pref_kind ->
142 *[should_not_happen] [{$pref_kind}]
148 *[should_not_happen] [{$desc_kind}]
149 [restatic] the static lifetime
150 [reempty] the empty lifetime
151 [reemptyuni] the empty lifetime in universe {$desc_arg}
152 [revar] lifetime {$desc_arg}
154 [as_defined] the lifetime `{$desc_arg}` as defined here
155 [as_defined_anon] the anonymous lifetime as defined here
156 [defined_here] the anonymous lifetime defined here
157 [anon_num_here] the anonymous lifetime #{$desc_num_arg} defined here
158 [defined_here_reg] the lifetime `{$desc_arg}` as defined here
160 *[should_not_happen] [{$suff_kind}]
165 infer_mismatched_static_lifetime = incompatible lifetime on type
166 infer_msl_impl_note = ...does not necessarily outlive the static lifetime introduced by the compatible `impl`
167 infer_msl_introduces_static = introduces a `'static` lifetime requirement
168 infer_msl_unmet_req = because this has an unmet lifetime requirement
169 infer_msl_trait_note = this has an implicit `'static` lifetime requirement
170 infer_msl_trait_sugg = consider relaxing the implicit `'static` requirement