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
Auto merge of #66403 - JohnTitor:rollup-7obuivl, r=JohnTitor
Rollup of 9 pull requests
Successful merges:
- #66253 (Improve errors after re rebalance coherence)
- #66264 (fix an ICE in macro's diagnostic message)
- #66349 (expand source_util macros with def-site context)
- #66351 (Tweak non-char/numeric in range pattern diagnostic)
- #66360 (Fix link to Exten in Vec::set_len)
- #66361 (parser: don't use `unreachable!()` in `fn unexpected`.)
- #66363 (Improve error message in make_tests)
- #66369 (compiletest: Obtain timestamps for common inputs only once)
- #66372 (Fix broken links in Ipv4Addr::is_benchmarking docs)
Failed merges:
r? @ghost
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
0 commit comments