@@ -46,34 +46,6 @@ LL | tuple_one::<Tuple>();
46
46
= note: `Tuple` must implement `TheTrait<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`...
47
47
= note: ...but it actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
48
48
49
- error[E0308]: mismatched types
50
- --> $DIR/associated-types-eq-hr.rs:102:5
51
- |
52
- LL | tuple_two::<Tuple>();
53
- | ^^^^^^^^^^^^^^^^^^ lifetime mismatch
54
- |
55
- = note: expected reference `&'x isize`
56
- found reference `&'y isize`
57
- note: the lifetime requirement is introduced here
58
- --> $DIR/associated-types-eq-hr.rs:66:53
59
- |
60
- LL | T: for<'x, 'y> TheTrait<(&'x isize, &'y isize), A = &'y isize>,
61
- | ^^^^^^^^^^^^^
62
-
63
- error[E0308]: mismatched types
64
- --> $DIR/associated-types-eq-hr.rs:102:5
65
- |
66
- LL | tuple_two::<Tuple>();
67
- | ^^^^^^^^^^^^^^^^^^ lifetime mismatch
68
- |
69
- = note: expected reference `&'x isize`
70
- found reference `&'y isize`
71
- note: the lifetime requirement is introduced here
72
- --> $DIR/associated-types-eq-hr.rs:66:53
73
- |
74
- LL | T: for<'x, 'y> TheTrait<(&'x isize, &'y isize), A = &'y isize>,
75
- | ^^^^^^^^^^^^^
76
-
77
49
error: implementation of `TheTrait` is not general enough
78
50
--> $DIR/associated-types-eq-hr.rs:102:5
79
51
|
@@ -93,15 +65,14 @@ LL | tuple_two::<Tuple>();
93
65
= note: ...but it actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
94
66
95
67
error: implementation of `TheTrait` is not general enough
96
- --> $DIR/associated-types-eq-hr.rs:114 :5
68
+ --> $DIR/associated-types-eq-hr.rs:112 :5
97
69
|
98
70
LL | tuple_four::<Tuple>();
99
71
| ^^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
100
72
|
101
73
= note: `Tuple` must implement `TheTrait<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`...
102
74
= note: ...but it actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
103
75
104
- error: aborting due to 9 previous errors
76
+ error: aborting due to 7 previous errors
105
77
106
- Some errors have detailed explanations: E0271, E0308.
107
- For more information about an error, try `rustc --explain E0271`.
78
+ For more information about this error, try `rustc --explain E0271`.
0 commit comments