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