]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_messages/locales/en-US/ast_passes.ftl
Auto merge of #106977 - michaelwoerister:unord_id_collections, r=oli-obk
[rust.git] / compiler / rustc_error_messages / locales / en-US / ast_passes.ftl
1 ast_passes_forbidden_let =
2     `let` expressions are not supported here
3     .note = only supported directly in conditions of `if` and `while` expressions
4     .not_supported_or = `||` operators are not supported in let chain expressions
5     .not_supported_parentheses = `let`s wrapped in parentheses are not supported in a context with let chains
6
7 ast_passes_forbidden_let_stable =
8     expected expression, found statement (`let`)
9     .note = variable declaration using `let` is a statement
10
11 ast_passes_deprecated_where_clause_location =
12     where clause not allowed here
13
14 ast_passes_forbidden_assoc_constraint =
15     associated type bounds are not allowed within structs, enums, or unions
16
17 ast_passes_keyword_lifetime =
18     lifetimes cannot use keyword names
19
20 ast_passes_invalid_label =
21     invalid label name `{$name}`
22
23 ast_passes_invalid_visibility =
24     unnecessary visibility qualifier
25     .implied = `pub` not permitted here because it's implied
26     .individual_impl_items = place qualifiers on individual impl items instead
27     .individual_foreign_items = place qualifiers on individual foreign items instead
28
29 ast_passes_trait_fn_const =
30     functions in traits cannot be declared const
31     .label = functions in traits cannot be const
32
33 ast_passes_forbidden_lifetime_bound =
34     lifetime bounds cannot be used in this context
35
36 ast_passes_forbidden_non_lifetime_param =
37     only lifetime parameters can be used in this context
38
39 ast_passes_fn_param_too_many =
40     function can not have more than {$max_num_args} arguments
41
42 ast_passes_fn_param_c_var_args_only =
43     C-variadic function must be declared with at least one named argument
44
45 ast_passes_fn_param_c_var_args_not_last =
46     `...` must be the last argument of a C-variadic function
47
48 ast_passes_fn_param_doc_comment =
49     documentation comments cannot be applied to function parameters
50     .label = doc comments are not allowed here
51
52 ast_passes_fn_param_forbidden_attr =
53     allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
54
55 ast_passes_fn_param_forbidden_self =
56     `self` parameter is only allowed in associated functions
57     .label = not semantically valid as function parameter
58     .note = associated functions are those in `impl` or `trait` definitions
59
60 ast_passes_forbidden_default =
61     `default` is only allowed on items in trait impls
62     .label = `default` because of this
63
64 ast_passes_assoc_const_without_body =
65     associated constant in `impl` without body
66     .suggestion = provide a definition for the constant
67
68 ast_passes_assoc_fn_without_body =
69     associated function in `impl` without body
70     .suggestion = provide a definition for the function
71
72 ast_passes_assoc_type_without_body =
73     associated type in `impl` without body
74     .suggestion = provide a definition for the type
75
76 ast_passes_const_without_body =
77     free constant item without body
78     .suggestion = provide a definition for the constant
79
80 ast_passes_static_without_body =
81     free static item without body
82     .suggestion = provide a definition for the static
83
84 ast_passes_ty_alias_without_body =
85     free type alias without body
86     .suggestion = provide a definition for the type
87
88 ast_passes_fn_without_body =
89     free function without a body
90     .suggestion = provide a definition for the function
91
92 ast_passes_extern_block_suggestion = if you meant to declare an externally defined function, use an `extern` block