2023-01-06 14:15:10 -06: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 02:09:08 -05:00
|
|
|
--> $DIR/issue-62203-hrtb-ice.rs:39:9
|
2019-07-09 06:57:22 -05:00
|
|
|
|
|
2022-08-13 02:09:08 -05: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 14:15:10 -06: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 06:57:22 -05:00
|
|
|
|
|
2021-12-10 20:20:41 -06: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 18:04:09 -05: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 23:58:59 -05:00
|
|
|
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
|
2021-10-05 18:04:09 -05: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
|
2023-02-20 23:21:07 -06:00
|
|
|
| - required by a bound in this associated function
|
2021-10-05 18:04:09 -05:00
|
|
|
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 06:57:22 -05:00
|
|
|
|
2022-12-13 18:34:04 -06: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 02:09:08 -05:00
|
|
|
--> $DIR/issue-62203-hrtb-ice.rs:39:9
|
2019-07-09 06:57:22 -05:00
|
|
|
|
|
2021-10-22 15:49:12 -05:00
|
|
|
LL | let v = Unit2.m(
|
|
|
|
| - required by a bound introduced by this call
|
|
|
|
LL | / L {
|
|
|
|
LL | |
|
2022-08-13 02:09:08 -05:00
|
|
|
LL | |
|
2022-08-07 19:13:41 -05:00
|
|
|
LL | | f: |x| {
|
2022-08-13 02:09:08 -05:00
|
|
|
... |
|
2022-08-07 19:13:41 -05:00
|
|
|
LL | | },
|
|
|
|
LL | | },
|
2023-01-02 20:00:33 -06:00
|
|
|
| |_________^ expected `Unit3`, found `Unit4`
|
2019-07-09 06:57:22 -05:00
|
|
|
|
|
2022-08-15 15:31:37 -05: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 15:37:30 -05:00
|
|
|
--> $DIR/issue-62203-hrtb-ice.rs:17:16
|
|
|
|
|
|
|
|
|
LL | impl<'a, A, T> T0<'a, A> for L<T>
|
|
|
|
| ^^^^^^^^^ ^^^^
|
2023-01-10 21:21:11 -06:00
|
|
|
LL | where
|
|
|
|
LL | T: FnMut(A) -> Unit3,
|
|
|
|
| ----- unsatisfied trait bound introduced here
|
2021-10-05 18:04:09 -05: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
|
2023-02-20 23:21:07 -06:00
|
|
|
| - required by a bound in this associated function
|
2021-10-05 18:04:09 -05:00
|
|
|
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 06:57:22 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0271`.
|