]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_error_messages/locales/en-US/hir_typeck.ftl
New upstream version 1.68.2+dfsg1
[rustc.git] / compiler / rustc_error_messages / locales / en-US / hir_typeck.ftl
CommitLineData
487cf647
FG
1hir_typeck_fru_note = this expression may have been misinterpreted as a `..` range expression
2hir_typeck_fru_expr = this expression does not end in a comma...
3hir_typeck_fru_expr2 = ... so this is interpreted as a `..` range expression, instead of functional record update syntax
4hir_typeck_fru_suggestion =
5 to set the remaining fields{$expr ->
6 [NONE]{""}
7 *[other] {" "}from `{$expr}`
8 }, separate the last named field with a comma
9
10hir_typeck_field_multiply_specified_in_initializer =
11 field `{$ident}` specified more than once
12 .label = used more than once
13 .previous_use_label = first use of `{$ident}`
14
15hir_typeck_return_stmt_outside_of_fn_body =
16 return statement outside of function body
17 .encl_body_label = the return is part of this body...
18 .encl_fn_label = ...not the enclosing function body
19
20hir_typeck_yield_expr_outside_of_generator =
21 yield expression outside of generator literal
22
23hir_typeck_struct_expr_non_exhaustive =
24 cannot create non-exhaustive {$what} using struct expression
25
26hir_typeck_method_call_on_unknown_type =
27 the type of this value must be known to call a method on a raw pointer on it
28
29hir_typeck_functional_record_update_on_non_struct =
30 functional record update syntax requires a struct
31
32hir_typeck_address_of_temporary_taken = cannot take address of a temporary
33 .label = temporary value
34
35hir_typeck_add_return_type_add = try adding a return type
36
37hir_typeck_add_return_type_missing_here = a return type might be missing here
38
39hir_typeck_expected_default_return_type = expected `()` because of default return type
40
41hir_typeck_expected_return_type = expected `{$expected}` because of return type
42
43hir_typeck_missing_parentheses_in_range = can't call method `{$method_name}` on type `{$ty_str}`
44
45hir_typeck_add_missing_parentheses_in_range = you must surround the range in parentheses to call its `{$func_name}` function
46
47hir_typeck_op_trait_generic_params =
48 `{$method_name}` must not have any generic parameters
9c376795
FG
49
50hir_typeck_lang_start_incorrect_number_params = incorrect number of parameters for the `start` lang item
51hir_typeck_lang_start_incorrect_number_params_note_expected_count = the `start` lang item should have four parameters, but found {$found_param_count}
52
53hir_typeck_lang_start_expected_sig_note = the `start` lang item should have the signature `fn(fn() -> T, isize, *const *const u8, u8) -> isize`
54
55hir_typeck_lang_start_incorrect_param = parameter {$param_num} of the `start` lang item is incorrect
56 .suggestion = change the type from `{$found_ty}` to `{$expected_ty}`
57
58hir_typeck_lang_start_incorrect_ret_ty = the return type of the `start` lang item is incorrect
59 .suggestion = change the type from `{$found_ty}` to `{$expected_ty}`