2023-01-06 20:15:10 +00:00
|
|
|
error[E0271]: type mismatch resolving `<L<[closure@issue-62203-hrtb-ice.rs:42:16]> as T0<'r, (&u8,)>>::O == <_ as Ty<'r>>::V`
|
2022-08-13 07:09:08 +00:00
|
|
|
--> $DIR/issue-62203-hrtb-ice.rs:39:9
|
2019-07-09 13:57:22 +02:00
|
|
|
|
|
2022-08-13 07:09:08 +00:00
|
|
|
LL | let v = Unit2.m(
|
|
|
|
| - required by a bound introduced by this call
|
|
|
|
LL | / L {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | f: |x| {
|
|
|
|
... |
|
|
|
|
LL | | },
|
|
|
|
LL | | },
|
2023-01-06 20:15:10 +00:00
|
|
|
| |_________^ type mismatch resolving `<L<[closure@issue-62203-hrtb-ice.rs:42:16]> as T0<'r, (&u8,)>>::O == <_ as Ty<'r>>::V`
|
2019-07-09 13:57:22 +02:00
|
|
|
|
|
2021-12-11 02:20:41 +00:00
|
|
|
note: expected this to be `<_ as Ty<'_>>::V`
|
|
|
|
--> $DIR/issue-62203-hrtb-ice.rs:21:14
|
|
|
|
|
|
|
|
|
LL | type O = T::Output;
|
|
|
|
| ^^^^^^^^^
|
2021-10-05 23:04:09 +00:00
|
|
|
= note: expected associated type `<_ as Ty<'_>>::V`
|
|
|
|
found struct `Unit4`
|
|
|
|
= help: consider constraining the associated type `<_ as Ty<'_>>::V` to `Unit4` or calling a method that returns `<_ as Ty<'_>>::V`
|
2019-08-25 21:58:59 -07:00
|
|
|
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
|
2021-10-05 23:04:09 +00:00
|
|
|
note: required by a bound in `T1::m`
|
|
|
|
--> $DIR/issue-62203-hrtb-ice.rs:27:51
|
|
|
|
|
|
|
|
|
LL | fn m<'a, B: Ty<'a>, F>(&self, f: F) -> Unit1
|
|
|
|
| - required by a bound in this
|
|
|
|
LL | where
|
|
|
|
LL | F: for<'r> T0<'r, (<Self as Ty<'r>>::V,), O = <B as Ty<'r>>::V>,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ required by this bound in `T1::m`
|
2019-07-09 13:57:22 +02:00
|
|
|
|
2022-12-13 16:34:04 -08:00
|
|
|
error[E0271]: expected `[closure@issue-62203-hrtb-ice.rs:42:16]` to be a closure that returns `Unit3`, but it returns `Unit4`
|
2022-08-13 07:09:08 +00:00
|
|
|
--> $DIR/issue-62203-hrtb-ice.rs:39:9
|
2019-07-09 13:57:22 +02:00
|
|
|
|
|
2021-10-22 13:49:12 -07:00
|
|
|
LL | let v = Unit2.m(
|
|
|
|
| - required by a bound introduced by this call
|
|
|
|
LL | / L {
|
|
|
|
LL | |
|
2022-08-13 07:09:08 +00:00
|
|
|
LL | |
|
2022-08-08 00:13:41 +00:00
|
|
|
LL | | f: |x| {
|
2022-08-13 07:09:08 +00:00
|
|
|
... |
|
2022-08-08 00:13:41 +00:00
|
|
|
LL | | },
|
|
|
|
LL | | },
|
2023-01-02 18:00:33 -08:00
|
|
|
| |_________^ expected `Unit3`, found `Unit4`
|
2019-07-09 13:57:22 +02:00
|
|
|
|
|
2022-08-15 21:31:37 +01:00
|
|
|
note: required for `L<[closure@$DIR/issue-62203-hrtb-ice.rs:42:16: 42:19]>` to implement `for<'r> T0<'r, (&'r u8,)>`
|
2021-03-30 13:37:30 -07:00
|
|
|
--> $DIR/issue-62203-hrtb-ice.rs:17:16
|
|
|
|
|
|
|
|
|
LL | impl<'a, A, T> T0<'a, A> for L<T>
|
|
|
|
| ^^^^^^^^^ ^^^^
|
2023-01-11 03:21:11 +00:00
|
|
|
LL | where
|
|
|
|
LL | T: FnMut(A) -> Unit3,
|
|
|
|
| ----- unsatisfied trait bound introduced here
|
2021-10-05 23:04:09 +00:00
|
|
|
note: required by a bound in `T1::m`
|
|
|
|
--> $DIR/issue-62203-hrtb-ice.rs:27:12
|
|
|
|
|
|
|
|
|
LL | fn m<'a, B: Ty<'a>, F>(&self, f: F) -> Unit1
|
|
|
|
| - required by a bound in this
|
|
|
|
LL | where
|
|
|
|
LL | F: for<'r> T0<'r, (<Self as Ty<'r>>::V,), O = <B as Ty<'r>>::V>,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `T1::m`
|
2019-07-09 13:57:22 +02:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0271`.
|