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
{{ message }}
This repository was archived by the owner on May 28, 2025. It is now read-only.
error: internal compiler error: compiler/rustc_hir_analysis/src/coherence/orphan.rs:449:40: failed to find ty param in `<Wrapper<_> as Discard>::Output`
1
+
error[E0210]: type parameter `T` must be covered by another type when it appears before the first local type (`LocalTy`)
LL | impl<T> foreign::Trait1<LocalTy, T> for <Wrapper<T> as Discard>::Output
5
+
| ^ type parameter `T` must be covered by another type when it appears before the first local type (`LocalTy`)
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
2
9
3
-
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
4
-
Box<dyn Any>
5
-
stack backtrace:
6
-
7
-
query stack during panic:
8
-
#0 [orphan_check_impl] checking whether impl `<impl at $DIR/orphan-check-projections-unsat-bounds.rs:38:1: 40:22>` follows the orphan rules
9
-
#1 [coherent_trait] coherence checking all impls of trait `parametrized_trait::Trait1`
10
-
#2 [analysis] running analysis passes on this crate
11
-
end of query stack
12
10
error: aborting due to 1 previous error
13
11
12
+
For more information about this error, try `rustc --explain E0210`.
error: internal compiler error: compiler/rustc_hir_analysis/src/coherence/orphan.rs:449:40: failed to find ty param in `<Wrapper<_> as Discard>::Output`
1
+
error[E0210]: type parameter `T` must be covered by another type when it appears before the first local type (`LocalTy`)
LL | impl<T> foreign::Trait1<LocalTy, T> for <Wrapper<T> as Discard>::Output
5
+
| ^ type parameter `T` must be covered by another type when it appears before the first local type (`LocalTy`)
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
2
9
3
-
thread 'rustc' panicked at compiler/rustc_middle/src/util/bug.rs:35:44:
4
-
Box<dyn Any>
5
-
stack backtrace:
6
-
7
-
query stack during panic:
8
-
#0 [orphan_check_impl] checking whether impl `<impl at $DIR/orphan-check-projections-unsat-bounds.rs:38:1: 40:22>` follows the orphan rules
9
-
#1 [coherent_trait] coherence checking all impls of trait `parametrized_trait::Trait1`
10
-
#2 [analysis] running analysis passes on this crate
11
-
end of query stack
12
10
error: aborting due to 1 previous error
13
11
12
+
For more information about this error, try `rustc --explain E0210`.
0 commit comments