]> git.lizzy.rs Git - rust.git/blob - tests/ui/specialization/issue-39448.stderr
Rollup merge of #106705 - compiler-errors:new-solver-err-properly, r=lcnr
[rust.git] / tests / ui / specialization / issue-39448.stderr
1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/issue-39448.rs:1:12
3    |
4 LL | #![feature(specialization)]
5    |            ^^^^^^^^^^^^^^
6    |
7    = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
8    = help: consider using `min_specialization` instead, which is more stable and complete
9    = note: `#[warn(incomplete_features)]` on by default
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
19    |
20 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
26    |
27 LL | impl<T, U> ToA<U> for T
28    |            ^^^^^^     ^
29 LL | where
30 LL |     U: FromA<T>,
31    |        -------- unsatisfied trait bound introduced here
32
33 error: aborting due to previous error; 1 warning emitted
34
35 For more information about this error, try `rustc --explain E0275`.