You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: compiler/rustc_hir_analysis/messages.ftl
+4-4
Original file line number
Diff line number
Diff line change
@@ -370,13 +370,13 @@ hir_analysis_transparent_non_zero_sized_enum = the variant of a transparent {$de
370
370
.label = needs at most one field with non-trivial size or alignment, but has {$field_count}
371
371
.labels = this field has non-zero size or requires alignment
372
372
373
-
hir_analysis_ty_param_first_local = type parameter `{$param_ty}` must be covered by another type when it appears before the first local type (`{$local_type}`)
374
-
.label = type parameter `{$param_ty}` must be covered by another type when it appears before the first local type (`{$local_type}`)
373
+
hir_analysis_ty_param_first_local = type parameter `{$param}` must be covered by another type when it appears before the first local type (`{$local_type}`)
374
+
.label = type parameter `{$param}` must be covered by another type when it appears before the first local type (`{$local_type}`)
375
375
.note = implementing a foreign trait is only possible if at least one of the types for which it is implemented is local, and no uncovered type parameters appear before that first local type
376
376
.case_note = in this case, 'before' refers to the following order: `impl<..> ForeignTrait<T1, ..., Tn> for T0`, where `T0` is the first and `Tn` is the last
377
377
378
-
hir_analysis_ty_param_some = type parameter `{$param_ty}` must be used as the type parameter for some local type (e.g., `MyStruct<{$param_ty}>`)
379
-
.label = type parameter `{$param_ty}` must be used as the type parameter for some local type
378
+
hir_analysis_ty_param_some = type parameter `{$param}` must be used as the type parameter for some local type (e.g., `MyStruct<{$param}>`)
379
+
.label = type parameter `{$param}` must be used as the type parameter for some local type
380
380
.note = implementing a foreign trait is only possible if at least one of the types for which it is implemented is local
381
381
.only_note = only traits defined in the current crate can be implemented for a type parameter
LL | impl<T> foreign::Trait0<Local, T, ()> for <T as Identity>::Output {}
5
+
| ^ type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
6
+
|
7
+
= note: implementing a foreign trait is only possible if at least one of the types for which it is implemented is local, and no uncovered type parameters appear before that first local type
8
+
= note: in this case, 'before' refers to the following order: `impl<..> ForeignTrait<T1, ..., Tn> for T0`, where `T0` is the first and `Tn` is the last
9
+
10
+
error[E0210]: type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
LL | impl<T> foreign::Trait0<<T as Identity>::Output, Local, T> for Option<T> {}
14
+
| ^ type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
15
+
|
16
+
= note: implementing a foreign trait is only possible if at least one of the types for which it is implemented is local, and no uncovered type parameters appear before that first local type
17
+
= note: in this case, 'before' refers to the following order: `impl<..> ForeignTrait<T1, ..., Tn> for T0`, where `T0` is the first and `Tn` is the last
18
+
19
+
error[E0210]: type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
LL | impl<T: Deferred> foreign::Trait1<Local, T> for <T as Deferred>::Output {}
23
+
| ^ type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
24
+
|
25
+
= note: implementing a foreign trait is only possible if at least one of the types for which it is implemented is local, and no uncovered type parameters appear before that first local type
26
+
= note: in this case, 'before' refers to the following order: `impl<..> ForeignTrait<T1, ..., Tn> for T0`, where `T0` is the first and `Tn` is the last
27
+
28
+
error: aborting due to 3 previous errors
29
+
30
+
For more information about this error, try `rustc --explain E0210`.
0 commit comments