1
- error[E0271]: type mismatch resolving `for<'r> <L<[closure@$DIR/issue-62203-hrtb-ice.rs:41:16 : 41:19 ]> as T0<'r, (&'r u8,)>>::O == <_ as Ty<'r>>::V`
2
- --> $DIR/issue-62203-hrtb-ice.rs:39:9
1
+ error[E0271]: type mismatch resolving `for<'r> <L<[closure@$DIR/issue-62203-hrtb-ice.rs:41:12 : 41:15 ]> as T0<'r, (&'r u8,)>>::O == <_ as Ty<'r>>::V`
2
+ --> $DIR/issue-62203-hrtb-ice.rs:38:21
3
3
|
4
- LL | let v = Unit2.m(
5
- | - required by a bound introduced by this call
6
- LL | / L {
4
+ LL | let v = Unit2.m(L {
5
+ | ___________________-_^
6
+ | | |
7
+ | | required by a bound introduced by this call
7
8
LL | |
8
- LL | | f: |x| {
9
9
LL | |
10
+ LL | | f: |x| {
10
11
... |
11
- LL | | },
12
12
LL | | },
13
- | |_________^ type mismatch resolving `for<'r> <L<[closure@$DIR/issue-62203-hrtb-ice.rs:41:16: 41:19]> as T0<'r, (&'r u8,)>>::O == <_ as Ty<'r>>::V`
13
+ LL | | });
14
+ | |_____^ type mismatch resolving `for<'r> <L<[closure@$DIR/issue-62203-hrtb-ice.rs:41:12: 41:15]> as T0<'r, (&'r u8,)>>::O == <_ as Ty<'r>>::V`
14
15
|
15
16
note: expected this to be `<_ as Ty<'_>>::V`
16
17
--> $DIR/issue-62203-hrtb-ice.rs:21:14
@@ -30,21 +31,22 @@ LL | where
30
31
LL | F: for<'r> T0<'r, (<Self as Ty<'r>>::V,), O = <B as Ty<'r>>::V>,
31
32
| ^^^^^^^^^^^^^^^^^^^^ required by this bound in `T1::m`
32
33
33
- error[E0271]: expected `[
[email protected] :41:
16 ]` to be a closure that returns `Unit3`, but it returns `Unit4`
34
- --> $DIR/issue-62203-hrtb-ice.rs:41:16
35
- |
36
- LL | let v = Unit2.m(
37
- | - required by a bound introduced by this call
38
- ...
39
- LL | f: |x| {
40
- | ________________^
34
+ error[E0271]: expected `[
[email protected] :41:
12 ]` to be a closure that returns `Unit3`, but it returns `Unit4`
35
+ --> $DIR/issue-62203-hrtb-ice.rs:38:21
36
+ |
37
+ LL | let v = Unit2.m(L {
38
+ | ___________________-_^
39
+ | | |
40
+ | | required by a bound introduced by this call
41
+ LL | |
41
42
LL | |
42
- LL | | drop(x);
43
- LL | | Unit4
44
- LL | | },
45
- | |_____________^ expected struct `Unit3`, found struct `Unit4`
43
+ LL | | f: |x| {
44
+ ... |
45
+ LL | | },
46
+ LL | | });
47
+ | |_____^ expected struct `Unit3`, found struct `Unit4`
46
48
|
47
- note: required for `L<[closure@$DIR/issue-62203-hrtb-ice.rs:41:16 : 41:19 ]>` to implement `for<'r> T0<'r, (&'r u8,)>`
49
+ note: required for `L<[closure@$DIR/issue-62203-hrtb-ice.rs:41:12 : 41:15 ]>` to implement `for<'r> T0<'r, (&'r u8,)>`
48
50
--> $DIR/issue-62203-hrtb-ice.rs:17:16
49
51
|
50
52
LL | impl<'a, A, T> T0<'a, A> for L<T>
0 commit comments