1
1
error[E0271]: type mismatch resolving `for<'x> <UintStruct as TheTrait<&'x isize>>::A == &'x isize`
2
- --> $DIR/associated-types-eq-hr.rs:87 :5
2
+ --> $DIR/associated-types-eq-hr.rs:91 :5
3
3
|
4
4
LL | foo::<UintStruct>();
5
5
| ^^^^^^^^^^^^^^^^^ type mismatch resolving `for<'x> <UintStruct as TheTrait<&'x isize>>::A == &'x isize`
6
6
|
7
7
note: expected this to be `&isize`
8
- --> $DIR/associated-types-eq-hr.rs:26 :14
8
+ --> $DIR/associated-types-eq-hr.rs:30 :14
9
9
|
10
10
LL | type A = &'a usize;
11
11
| ^^^^^^^^^
12
12
= note: expected reference `&isize`
13
13
found reference `&usize`
14
14
note: required by a bound in `foo`
15
- --> $DIR/associated-types-eq-hr.rs:45 :36
15
+ --> $DIR/associated-types-eq-hr.rs:49 :36
16
16
|
17
17
LL | fn foo<T>()
18
18
| --- required by a bound in this
@@ -21,20 +21,20 @@ LL | T: for<'x> TheTrait<&'x isize, A = &'x isize>,
21
21
| ^^^^^^^^^^^^^ required by this bound in `foo`
22
22
23
23
error[E0271]: type mismatch resolving `for<'x> <IntStruct as TheTrait<&'x isize>>::A == &'x usize`
24
- --> $DIR/associated-types-eq-hr.rs:91 :5
24
+ --> $DIR/associated-types-eq-hr.rs:95 :5
25
25
|
26
26
LL | bar::<IntStruct>();
27
27
| ^^^^^^^^^^^^^^^^ type mismatch resolving `for<'x> <IntStruct as TheTrait<&'x isize>>::A == &'x usize`
28
28
|
29
29
note: expected this to be `&usize`
30
- --> $DIR/associated-types-eq-hr.rs:14 :14
30
+ --> $DIR/associated-types-eq-hr.rs:18 :14
31
31
|
32
32
LL | type A = &'a isize;
33
33
| ^^^^^^^^^
34
34
= note: expected reference `&usize`
35
35
found reference `&isize`
36
36
note: required by a bound in `bar`
37
- --> $DIR/associated-types-eq-hr.rs:52 :36
37
+ --> $DIR/associated-types-eq-hr.rs:56 :36
38
38
|
39
39
LL | fn bar<T>()
40
40
| --- required by a bound in this
@@ -43,7 +43,7 @@ LL | T: for<'x> TheTrait<&'x isize, A = &'x usize>,
43
43
| ^^^^^^^^^^^^^ required by this bound in `bar`
44
44
45
45
error: implementation of `TheTrait` is not general enough
46
- --> $DIR/associated-types-eq-hr.rs:96 :5
46
+ --> $DIR/associated-types-eq-hr.rs:100 :5
47
47
|
48
48
LL | tuple_one::<Tuple>();
49
49
| ^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
@@ -52,7 +52,7 @@ LL | tuple_one::<Tuple>();
52
52
= note: ...but it actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
53
53
54
54
error: implementation of `TheTrait` is not general enough
55
- --> $DIR/associated-types-eq-hr.rs:96 :5
55
+ --> $DIR/associated-types-eq-hr.rs:100 :5
56
56
|
57
57
LL | tuple_one::<Tuple>();
58
58
| ^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
@@ -61,7 +61,7 @@ LL | tuple_one::<Tuple>();
61
61
= note: ...but it actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
62
62
63
63
error: implementation of `TheTrait` is not general enough
64
- --> $DIR/associated-types-eq-hr.rs:102 :5
64
+ --> $DIR/associated-types-eq-hr.rs:106 :5
65
65
|
66
66
LL | tuple_two::<Tuple>();
67
67
| ^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
@@ -70,7 +70,7 @@ LL | tuple_two::<Tuple>();
70
70
= note: ...but it actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
71
71
72
72
error: implementation of `TheTrait` is not general enough
73
- --> $DIR/associated-types-eq-hr.rs:102 :5
73
+ --> $DIR/associated-types-eq-hr.rs:106 :5
74
74
|
75
75
LL | tuple_two::<Tuple>();
76
76
| ^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
@@ -79,7 +79,7 @@ LL | tuple_two::<Tuple>();
79
79
= note: ...but it actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
80
80
81
81
error: implementation of `TheTrait` is not general enough
82
- --> $DIR/associated-types-eq-hr.rs:112 :5
82
+ --> $DIR/associated-types-eq-hr.rs:116 :5
83
83
|
84
84
LL | tuple_four::<Tuple>();
85
85
| ^^^^^^^^^^^^^^^^^^^ implementation of `TheTrait` is not general enough
0 commit comments