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: src/test/ui/coherence/coherence-bigint-param.stderr
+4-3
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
-
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
1
+
error[E0210]: type parameter `T` must be covered by another type when it appears before the first local type (`BigInt`)
2
2
--> $DIR/coherence-bigint-param.rs:8:6
3
3
|
4
4
LL | impl<T> Remote1<BigInt> for T { }
5
-
| ^ type parameter `T` must be used as the type parameter for some local type
5
+
| ^ type parameter `T` must be covered by another type when it appears before the first local type (`BigInt`)
6
6
|
7
-
= note: only traits defined in the current crate can be implemented for a type parameter
7
+
= note: implementing a foreign trait is only possible if at least one of the types for which is it 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
| ^ type parameter `T` must be used as the type parameter for some local type
5
+
| ^ type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
6
6
|
7
-
= note: only traits defined in the current crate can be implemented for a type parameter
7
+
= note: implementing a foreign trait is only possible if at least one of the types for which is it 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
8
9
9
-
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
10
+
error[E0210]: type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
| ^ type parameter `T` must be used as the type parameter for some local type
14
+
| ^ type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
14
15
|
15
-
= note: only traits defined in the current crate can be implemented for a type parameter
16
+
= note: implementing a foreign trait is only possible if at least one of the types for which is it 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
| ^ type parameter `T` must be used as the type parameter for some local type
5
+
| ^ type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
6
6
|
7
-
= note: only traits defined in the current crate can be implemented for a type parameter
7
+
= note: implementing a foreign trait is only possible if at least one of the types for which is it 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
8
9
9
-
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
10
+
error[E0210]: type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
| ^ type parameter `T` must be used as the type parameter for some local type
14
+
| ^ type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
14
15
|
15
-
= note: only traits defined in the current crate can be implemented for a type parameter
16
+
= note: implementing a foreign trait is only possible if at least one of the types for which is it 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
Copy file name to clipboardExpand all lines: src/test/ui/coherence/impl[t]-foreign[local]-for-t.stderr
+4-3
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
-
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
1
+
error[E0210]: type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
2
2
--> $DIR/impl[t]-foreign[local]-for-t.rs:10:6
3
3
|
4
4
LL | impl<T> Remote1<Local> for T {
5
-
| ^ type parameter `T` must be used as the type parameter for some local type
5
+
| ^ type parameter `T` must be covered by another type when it appears before the first local type (`Local`)
6
6
|
7
-
= note: only traits defined in the current crate can be implemented for a type parameter
7
+
= note: implementing a foreign trait is only possible if at least one of the types for which is it 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
0 commit comments