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