@@ -31,79 +31,44 @@ LL | bar::<IntStruct>();
3131error: implementation of `TheTrait` is not general enough
3232 --> $DIR/associated-types-eq-hr.rs:96:5
3333 |
34- LL | / pub trait TheTrait<T> {
35- LL | | type A;
36- LL | |
37- LL | | fn get(&self, t: T) -> Self::A;
38- LL | | }
39- | |_- trait `TheTrait` defined here
40- ...
41- LL | tuple_one::<Tuple>();
42- | ^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
34+ LL | tuple_one::<Tuple>();
35+ | ^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
4336 |
4437 = note: `Tuple` must implement `TheTrait<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`...
4538 = note: ...but `Tuple` actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
4639
4740error: implementation of `TheTrait` is not general enough
4841 --> $DIR/associated-types-eq-hr.rs:96:5
4942 |
50- LL | / pub trait TheTrait<T> {
51- LL | | type A;
52- LL | |
53- LL | | fn get(&self, t: T) -> Self::A;
54- LL | | }
55- | |_- trait `TheTrait` defined here
56- ...
57- LL | tuple_one::<Tuple>();
58- | ^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
43+ LL | tuple_one::<Tuple>();
44+ | ^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
5945 |
6046 = note: `Tuple` must implement `TheTrait<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`...
6147 = note: ...but `Tuple` actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
6248
6349error: implementation of `TheTrait` is not general enough
6450 --> $DIR/associated-types-eq-hr.rs:102:5
6551 |
66- LL | / pub trait TheTrait<T> {
67- LL | | type A;
68- LL | |
69- LL | | fn get(&self, t: T) -> Self::A;
70- LL | | }
71- | |_- trait `TheTrait` defined here
72- ...
73- LL | tuple_two::<Tuple>();
74- | ^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
52+ LL | tuple_two::<Tuple>();
53+ | ^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
7554 |
7655 = note: `Tuple` must implement `TheTrait<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`...
7756 = note: ...but `Tuple` actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
7857
7958error: implementation of `TheTrait` is not general enough
8059 --> $DIR/associated-types-eq-hr.rs:102:5
8160 |
82- LL | / pub trait TheTrait<T> {
83- LL | | type A;
84- LL | |
85- LL | | fn get(&self, t: T) -> Self::A;
86- LL | | }
87- | |_- trait `TheTrait` defined here
88- ...
89- LL | tuple_two::<Tuple>();
90- | ^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
61+ LL | tuple_two::<Tuple>();
62+ | ^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
9163 |
9264 = note: `Tuple` must implement `TheTrait<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`...
9365 = note: ...but `Tuple` actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
9466
9567error: implementation of `TheTrait` is not general enough
9668 --> $DIR/associated-types-eq-hr.rs:112:5
9769 |
98- LL | / pub trait TheTrait<T> {
99- LL | | type A;
100- LL | |
101- LL | | fn get(&self, t: T) -> Self::A;
102- LL | | }
103- | |_- trait `TheTrait` defined here
104- ...
105- LL | tuple_four::<Tuple>();
106- | ^^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
70+ LL | tuple_four::<Tuple>();
71+ | ^^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
10772 |
10873 = note: `Tuple` must implement `TheTrait<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`...
10974 = note: ...but `Tuple` actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
0 commit comments