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
5 ast_lowering_use_angle_brackets = use angle brackets instead
7 ast_lowering_invalid_abi =
8 invalid ABI: found `{$abi}`
10 .help = valid ABIs: {$valid_abis}
12 ast_lowering_assoc_ty_parentheses =
13 parenthesized generic arguments cannot be used in associated type constraints
15 ast_lowering_remove_parentheses = remove these parentheses
17 ast_lowering_misplaced_impl_trait =
18 `impl Trait` only allowed in function and inherent method return types, not in {$position}
20 ast_lowering_rustc_box_attribute_error =
21 #[rustc_box] requires precisely one argument and no other attributes are allowed
23 ast_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
27 ast_lowering_base_expression_double_dot =
28 base expression required after `..`
29 .label = add a base expression here
31 ast_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
35 ast_lowering_this_not_async = this is not `async`
37 ast_lowering_generator_too_many_parameters =
38 too many parameters for a generator (expected 0 or 1 parameters)
40 ast_lowering_closure_cannot_be_static = closures cannot be static
42 ast_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
46 ast_lowering_functional_record_update_destructuring_assignment =
47 functional record updates are not allowed in destructuring assignments
48 .suggestion = consider removing the trailing pattern
50 ast_lowering_async_generators_not_supported =
51 `async` generators are not yet supported
53 ast_lowering_inline_asm_unsupported_target =
54 inline assembly is unsupported on this target
56 ast_lowering_att_syntax_only_x86 =
57 the `att_syntax` option is only supported on x86
59 ast_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
64 ast_lowering_clobber_abi_not_supported =
65 `clobber_abi` is not supported on this target
67 ast_lowering_invalid_abi_clobber_abi =
68 invalid ABI for `clobber_abi`
69 .note = the following ABIs are supported on this target: {$supported_abis}
71 ast_lowering_invalid_register =
72 invalid register `{$reg}`: {$error}
74 ast_lowering_invalid_register_class =
75 invalid register class `{$reg_class}`: {$error}
77 ast_lowering_invalid_asm_template_modifier_reg_class =
78 invalid asm template modifier for this register class
80 ast_lowering_argument = argument
82 ast_lowering_template_modifier = template modifier
84 ast_lowering_support_modifiers =
85 the `{$class_name}` register class supports the following template modifiers: {$modifiers}
87 ast_lowering_does_not_support_modifiers =
88 the `{$class_name}` register class does not support template modifiers
90 ast_lowering_invalid_asm_template_modifier_const =
91 asm template modifiers are not allowed for `const` arguments
93 ast_lowering_invalid_asm_template_modifier_sym =
94 asm template modifiers are not allowed for `sym` arguments
96 ast_lowering_register_class_only_clobber =
97 register class `{$reg_class_name}` can only be used as a clobber, not as an input or output
99 ast_lowering_register_conflict =
100 register `{$reg1_name}` conflicts with register `{$reg2_name}`
101 .help = use `lateout` instead of `out` to avoid conflict
103 ast_lowering_register1 = register `{$reg1_name}`
105 ast_lowering_register2 = register `{$reg2_name}`
107 ast_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
112 ast_lowering_sub_tuple_binding_suggestion = if you don't need to use the contents of {$ident}, discard the tuple's remaining fields
114 ast_lowering_extra_double_dot =
115 `..` can only be used once per {$ctx} pattern
116 .label = can only be used once per {$ctx} pattern
118 ast_lowering_previously_used_here = previously used here
120 ast_lowering_misplaced_double_dot =
121 `..` patterns are not allowed here
122 .note = only allowed in tuple, tuple struct, and slice patterns
124 ast_lowering_misplaced_relax_trait_bound =
125 `?Trait` bounds are only permitted at the point where a type parameter is declared
127 ast_lowering_not_supported_for_lifetime_binder_async_closure =
128 `for<...>` binders on `async` closures are not currently supported
130 ast_lowering_arbitrary_expression_in_pattern =
131 arbitrary expressions aren't allowed in patterns
133 ast_lowering_inclusive_range_with_no_end = inclusive range with no end
135 ast_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