]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_error_messages/locales/en-US/ast_lowering.ftl
New upstream version 1.65.0+dfsg1
[rustc.git] / compiler / rustc_error_messages / locales / en-US / ast_lowering.ftl
CommitLineData
f2b60f7d
FG
1ast_lowering_generic_type_with_parentheses =
2 parenthesized type parameters may only be used with a `Fn` trait
3 .label = only `Fn` traits may use parentheses
4
5ast_lowering_use_angle_brackets = use angle brackets instead
6
7ast_lowering_invalid_abi =
8 invalid ABI: found `{$abi}`
9 .label = invalid ABI
10 .help = valid ABIs: {$valid_abis}
11
12ast_lowering_assoc_ty_parentheses =
13 parenthesized generic arguments cannot be used in associated type constraints
14
15ast_lowering_remove_parentheses = remove these parentheses
16
17ast_lowering_misplaced_impl_trait =
18 `impl Trait` only allowed in function and inherent method return types, not in {$position}
19
20ast_lowering_rustc_box_attribute_error =
21 #[rustc_box] requires precisely one argument and no other attributes are allowed
22
23ast_lowering_underscore_expr_lhs_assign =
24 in expressions, `_` can only be used on the left-hand side of an assignment
25 .label = `_` not allowed here
26
27ast_lowering_base_expression_double_dot =
28 base expression required after `..`
29 .label = add a base expression here
30
31ast_lowering_await_only_in_async_fn_and_blocks =
32 `await` is only allowed inside `async` functions and blocks
33 .label = only allowed inside `async` functions and blocks
34
35ast_lowering_this_not_async = this is not `async`
36
37ast_lowering_generator_too_many_parameters =
38 too many parameters for a generator (expected 0 or 1 parameters)
39
40ast_lowering_closure_cannot_be_static = closures cannot be static
41
42ast_lowering_async_non_move_closure_not_supported =
43 `async` non-`move` closures with parameters are not currently supported
44 .help = consider using `let` statements to manually capture variables by reference before entering an `async move` closure
45
46ast_lowering_functional_record_update_destructuring_assignment =
47 functional record updates are not allowed in destructuring assignments
48 .suggestion = consider removing the trailing pattern
49
50ast_lowering_async_generators_not_supported =
51 `async` generators are not yet supported
52
53ast_lowering_inline_asm_unsupported_target =
54 inline assembly is unsupported on this target
55
56ast_lowering_att_syntax_only_x86 =
57 the `att_syntax` option is only supported on x86
58
59ast_lowering_abi_specified_multiple_times =
60 `{$prev_name}` ABI specified multiple times
61 .label = previously specified here
62 .note = these ABIs are equivalent on the current target
63
64ast_lowering_clobber_abi_not_supported =
65 `clobber_abi` is not supported on this target
66
67ast_lowering_invalid_abi_clobber_abi =
68 invalid ABI for `clobber_abi`
69 .note = the following ABIs are supported on this target: {$supported_abis}
70
71ast_lowering_invalid_register =
72 invalid register `{$reg}`: {$error}
73
74ast_lowering_invalid_register_class =
75 invalid register class `{$reg_class}`: {$error}
76
77ast_lowering_invalid_asm_template_modifier_reg_class =
78 invalid asm template modifier for this register class
79
80ast_lowering_argument = argument
81
82ast_lowering_template_modifier = template modifier
83
84ast_lowering_support_modifiers =
85 the `{$class_name}` register class supports the following template modifiers: {$modifiers}
86
87ast_lowering_does_not_support_modifiers =
88 the `{$class_name}` register class does not support template modifiers
89
90ast_lowering_invalid_asm_template_modifier_const =
91 asm template modifiers are not allowed for `const` arguments
92
93ast_lowering_invalid_asm_template_modifier_sym =
94 asm template modifiers are not allowed for `sym` arguments
95
96ast_lowering_register_class_only_clobber =
97 register class `{$reg_class_name}` can only be used as a clobber, not as an input or output
98
99ast_lowering_register_conflict =
100 register `{$reg1_name}` conflicts with register `{$reg2_name}`
101 .help = use `lateout` instead of `out` to avoid conflict
102
103ast_lowering_register1 = register `{$reg1_name}`
104
105ast_lowering_register2 = register `{$reg2_name}`
106
107ast_lowering_sub_tuple_binding =
108 `{$ident_name} @` is not allowed in a {$ctx}
109 .label = this is only allowed in slice patterns
110 .help = remove this and bind each tuple field independently
111
112ast_lowering_sub_tuple_binding_suggestion = if you don't need to use the contents of {$ident}, discard the tuple's remaining fields
113
114ast_lowering_extra_double_dot =
115 `..` can only be used once per {$ctx} pattern
116 .label = can only be used once per {$ctx} pattern
117
118ast_lowering_previously_used_here = previously used here
119
120ast_lowering_misplaced_double_dot =
121 `..` patterns are not allowed here
122 .note = only allowed in tuple, tuple struct, and slice patterns
123
124ast_lowering_misplaced_relax_trait_bound =
125 `?Trait` bounds are only permitted at the point where a type parameter is declared
126
127ast_lowering_not_supported_for_lifetime_binder_async_closure =
128 `for<...>` binders on `async` closures are not currently supported
129
130ast_lowering_arbitrary_expression_in_pattern =
131 arbitrary expressions aren't allowed in patterns
132
133ast_lowering_inclusive_range_with_no_end = inclusive range with no end
134
135ast_lowering_trait_fn_async =
136 functions in traits cannot be declared `async`
137 .label = `async` because of this
138 .note = `async` trait functions are not currently supported
139 .note2 = consider using the `async-trait` crate: https://crates.io/crates/async-trait