1
- error[E0271]: type mismatch resolving `for<'r> <L<[closure@$DIR/issue-62203-hrtb-ice.rs:42:17: 42:39]> as T0<'r, (&'r u8,)>>::O == <_ as Ty<'r>>::V`
2
- --> $DIR/issue-62203-hrtb-ice.rs:38:19
3
- |
4
- LL | let v = Unit2.m(
5
- | ^ type mismatch resolving `for<'r> <L<[closure@$DIR/issue-62203-hrtb-ice.rs:42:17: 42:39]> as T0<'r, (&'r u8,)>>::O == <_ as Ty<'r>>::V`
6
- |
7
- note: expected this to be `<_ as Ty<'_>>::V`
8
- --> $DIR/issue-62203-hrtb-ice.rs:21:14
9
- |
10
- LL | type O = T::Output;
11
- | ^^^^^^^^^
12
- = note: expected associated type `<_ as Ty<'_>>::V`
13
- found struct `Unit4`
14
- = help: consider constraining the associated type `<_ as Ty<'_>>::V` to `Unit4` or calling a method that returns `<_ as Ty<'_>>::V`
15
- = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
16
- note: required by a bound in `T1::m`
17
- --> $DIR/issue-62203-hrtb-ice.rs:27:51
18
- |
19
- LL | fn m<'a, B: Ty<'a>, F>(&self, f: F) -> Unit1
20
- | - required by a bound in this
21
- LL | where
22
- LL | F: for<'r> T0<'r, (<Self as Ty<'r>>::V,), O = <B as Ty<'r>>::V>,
23
- | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `T1::m`
24
-
25
1
error[E0271]: type mismatch resolving `for<'r> <[closure@$DIR/issue-62203-hrtb-ice.rs:42:17: 42:39] as FnOnce<((&'r u8,),)>>::Output == Unit3`
26
2
--> $DIR/issue-62203-hrtb-ice.rs:40:9
27
3
|
@@ -48,6 +24,30 @@ LL | where
48
24
LL | F: for<'r> T0<'r, (<Self as Ty<'r>>::V,), O = <B as Ty<'r>>::V>,
49
25
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `T1::m`
50
26
27
+ error[E0271]: type mismatch resolving `for<'r> <L<[closure@$DIR/issue-62203-hrtb-ice.rs:42:17: 42:39]> as T0<'r, (&'r u8,)>>::O == <_ as Ty<'r>>::V`
28
+ --> $DIR/issue-62203-hrtb-ice.rs:38:19
29
+ |
30
+ LL | let v = Unit2.m(
31
+ | ^ type mismatch resolving `for<'r> <L<[closure@$DIR/issue-62203-hrtb-ice.rs:42:17: 42:39]> as T0<'r, (&'r u8,)>>::O == <_ as Ty<'r>>::V`
32
+ |
33
+ note: expected this to be `<_ as Ty<'_>>::V`
34
+ --> $DIR/issue-62203-hrtb-ice.rs:21:14
35
+ |
36
+ LL | type O = T::Output;
37
+ | ^^^^^^^^^
38
+ = note: expected associated type `<_ as Ty<'_>>::V`
39
+ found struct `Unit4`
40
+ = help: consider constraining the associated type `<_ as Ty<'_>>::V` to `Unit4` or calling a method that returns `<_ as Ty<'_>>::V`
41
+ = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
42
+ note: required by a bound in `T1::m`
43
+ --> $DIR/issue-62203-hrtb-ice.rs:27:51
44
+ |
45
+ LL | fn m<'a, B: Ty<'a>, F>(&self, f: F) -> Unit1
46
+ | - required by a bound in this
47
+ LL | where
48
+ LL | F: for<'r> T0<'r, (<Self as Ty<'r>>::V,), O = <B as Ty<'r>>::V>,
49
+ | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `T1::m`
50
+
51
51
error: aborting due to 2 previous errors
52
52
53
53
For more information about this error, try `rustc --explain E0271`.
0 commit comments