@@ -8,28 +8,21 @@ LL | #![feature(specialization)]
8
8
= help: consider using `min_specialization` instead, which is more stable and complete
9
9
= note: `#[warn(incomplete_features)]` on by default
10
10
11
- error[E0275]: overflow evaluating the requirement `T: FromA<U>`
12
- --> $DIR/issue-39448.rs:45:13
13
- |
14
- LL | x.foo(y.to()).to()
15
- | ^^
16
- |
17
- note: required for `T` to implement `FromA<U>`
18
- --> $DIR/issue-39448.rs:24:29
11
+ error[E0391]: cycle detected when computing whether impls specialize one another
12
+ --> $DIR/issue-39448.rs:24:1
19
13
|
20
14
LL | impl<T: A, U: A + FromA<T>> FromA<T> for U {
21
- | -------- ^^^^^^^^ ^
22
- | |
23
- | unsatisfied trait bound introduced here
24
- note: required for `U` to implement `ToA<T>`
25
- --> $DIR/issue-39448.rs:34:12
15
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16
+ |
17
+ = note: ...which requires evaluating trait selection obligation `u16: FromA<u8>`...
18
+ = note: ...which again requires computing whether impls specialize one another, completing the cycle
19
+ note: cycle used when building specialization graph of trait `FromA`
20
+ --> $DIR/issue-39448.rs:20:1
26
21
|
27
- LL | impl<T, U> ToA<U> for T
28
- | ^^^^^^ ^
29
- LL | where
30
- LL | U: FromA<T>,
31
- | -------- unsatisfied trait bound introduced here
22
+ LL | trait FromA<T> {
23
+ | ^^^^^^^^^^^^^^
24
+ = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
32
25
33
26
error: aborting due to 1 previous error; 1 warning emitted
34
27
35
- For more information about this error, try `rustc --explain E0275 `.
28
+ For more information about this error, try `rustc --explain E0391 `.
0 commit comments