]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_messages/locales/en-US/typeck.ftl
Rollup merge of #99759 - bjorn3:remove_llvm_dead_code, r=nikic
[rust.git] / compiler / rustc_error_messages / locales / en-US / typeck.ftl
1 typeck-field-multiply-specified-in-initializer =
2     field `{$ident}` specified more than once
3     .label = used more than once
4     .previous-use-label = first use of `{$ident}`
5
6 typeck-unrecognized-atomic-operation =
7     unrecognized atomic operation function: `{$op}`
8     .label = unrecognized atomic operation
9
10 typeck-wrong-number-of-generic-arguments-to-intrinsic =
11     intrinsic has wrong number of {$descr} parameters: found {$found}, expected {$expected}
12     .label = expected {$expected} {$descr} {$expected ->
13         [one] parameter
14         *[other] parameters
15     }
16
17 typeck-unrecognized-intrinsic-function =
18     unrecognized intrinsic function: `{$name}`
19     .label = unrecognized intrinsic
20
21 typeck-lifetimes-or-bounds-mismatch-on-trait =
22     lifetime parameters or bounds on {$item_kind} `{$ident}` do not match the trait declaration
23     .label = lifetimes do not match {$item_kind} in trait
24     .generics-label = lifetimes in impl do not match this {$item_kind} in trait
25
26 typeck-drop-impl-on-wrong-item =
27     the `Drop` trait may only be implemented for structs, enums, and unions
28     .label = must be a struct, enum, or union
29
30 typeck-field-already-declared =
31     field `{$field_name}` is already declared
32     .label = field already declared
33     .previous-decl-label = `{$field_name}` first declared here
34
35 typeck-copy-impl-on-type-with-dtor =
36     the trait `Copy` may not be implemented for this type; the type has a destructor
37     .label = `Copy` not allowed on types with destructors
38
39 typeck-multiple-relaxed-default-bounds =
40     type parameter has more than one relaxed default bound, only one is supported
41
42 typeck-copy-impl-on-non-adt =
43     the trait `Copy` may not be implemented for this type
44     .label = type is not a structure or enumeration
45
46 typeck-trait-object-declared-with-no-traits =
47     at least one trait is required for an object type
48     .alias-span = this alias does not contain a trait
49
50 typeck-ambiguous-lifetime-bound =
51     ambiguous lifetime bound, explicit lifetime bound required
52
53 typeck-assoc-type-binding-not-allowed =
54     associated type bindings are not allowed here
55     .label = associated type not allowed here
56
57 typeck-functional-record-update-on-non-struct =
58     functional record update syntax requires a struct
59
60 typeck-typeof-reserved-keyword-used =
61     `typeof` is a reserved keyword but unimplemented
62     .suggestion = consider replacing `typeof(...)` with an actual type
63     .label = reserved keyword
64
65 typeck-return-stmt-outside-of-fn-body =
66     return statement outside of function body
67     .encl-body-label = the return is part of this body...
68     .encl-fn-label = ...not the enclosing function body
69
70 typeck-yield-expr-outside-of-generator =
71     yield expression outside of generator literal
72
73 typeck-struct-expr-non-exhaustive =
74     cannot create non-exhaustive {$what} using struct expression
75
76 typeck-method-call-on-unknown-type =
77     the type of this value must be known to call a method on a raw pointer on it
78
79 typeck-value-of-associated-struct-already-specified =
80     the value of the associated type `{$item_name}` (from trait `{$def_path}`) is already specified
81     .label = re-bound here
82     .previous-bound-label = `{$item_name}` bound here first
83
84 typeck-address-of-temporary-taken = cannot take address of a temporary
85     .label = temporary value
86
87 typeck-add-return-type-add = try adding a return type
88
89 typeck-add-return-type-missing-here = a return type might be missing here
90
91 typeck-expected-default-return-type = expected `()` because of default return type
92
93 typeck-expected-return-type = expected `{$expected}` because of return type
94
95 typeck-unconstrained-opaque-type = unconstrained opaque type
96     .note = `{$name}` must be used in combination with a concrete type within the same module
97
98 typeck-missing-type-params =
99     the type {$parameterCount ->
100         [one] parameter
101         *[other] parameters
102     } {$parameters} must be explicitly specified
103     .label = type {$parameterCount ->
104         [one] parameter
105         *[other] parameters
106     } {$parameters} must be specified for this
107     .suggestion = set the type {$parameterCount ->
108         [one] parameter
109         *[other] parameters
110     } to the desired {$parameterCount ->
111         [one] type
112         *[other] types
113     }
114     .no-suggestion-label = missing {$parameterCount ->
115         [one] reference
116         *[other] references
117     } to {$parameters}
118     .note = because of the default `Self` reference, type parameters must be specified on object types
119
120 typeck-manual-implementation =
121     manual implementations of `{$trait_name}` are experimental
122     .label = manual implementations of `{$trait_name}` are experimental
123     .help = add `#![feature(unboxed_closures)]` to the crate attributes to enable
124
125 typeck-substs-on-overridden-impl = could not resolve substs on overridden impl