@@ -46,34 +46,6 @@ LL | tuple_one::<Tuple>();
4646 = note: `Tuple` must implement `TheTrait<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`...
4747 = note: ...but it actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
4848
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-
7749error: implementation of `TheTrait` is not general enough
7850 --> $DIR/associated-types-eq-hr.rs:102:5
7951 |
@@ -93,15 +65,14 @@ LL | tuple_two::<Tuple>();
9365 = note: ...but it actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
9466
9567error: 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
9769 |
9870LL | tuple_four::<Tuple>();
9971 | ^^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
10072 |
10173 = note: `Tuple` must implement `TheTrait<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`...
10274 = note: ...but it actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
10375
104- error: aborting due to 9 previous errors
76+ error: aborting due to 7 previous errors
10577
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