@@ -44,26 +44,26 @@ LL | fn take2<P: Project<SELF = {}>>(_: P) {}
44
44
= note: `SELF` has type `P`
45
45
46
46
error: the type of the associated constant `K` must not depend on generic parameters
47
- --> $DIR/assoc-const-eq-param-in-ty.rs:40 :52
47
+ --> $DIR/assoc-const-eq-param-in-ty.rs:41 :52
48
48
|
49
49
LL | trait Iface<'r> {
50
50
| -- the lifetime parameter `'r` is defined here
51
- LL |
51
+ ...
52
52
LL | type Assoc<const Q: usize>: Trait<'r, Self, Q, K = { loop {} }>
53
53
| ^ its type must not depend on the lifetime parameter `'r`
54
54
|
55
55
= note: `K` has type `&'r [Self; Q]`
56
56
57
57
error: the type of the associated constant `K` must not depend on `Self`
58
- --> $DIR/assoc-const-eq-param-in-ty.rs:40 :52
58
+ --> $DIR/assoc-const-eq-param-in-ty.rs:41 :52
59
59
|
60
60
LL | type Assoc<const Q: usize>: Trait<'r, Self, Q, K = { loop {} }>
61
61
| ^ its type must not depend on `Self`
62
62
|
63
63
= note: `K` has type `&'r [Self; Q]`
64
64
65
65
error: the type of the associated constant `K` must not depend on generic parameters
66
- --> $DIR/assoc-const-eq-param-in-ty.rs:40 :52
66
+ --> $DIR/assoc-const-eq-param-in-ty.rs:41 :52
67
67
|
68
68
LL | type Assoc<const Q: usize>: Trait<'r, Self, Q, K = { loop {} }>
69
69
| - ^ its type must not depend on the const parameter `Q`
@@ -72,5 +72,37 @@ LL | type Assoc<const Q: usize>: Trait<'r, Self, Q, K = { loop {} }>
72
72
|
73
73
= note: `K` has type `&'r [Self; Q]`
74
74
75
- error: aborting due to 8 previous errors
75
+ error: the type of the associated constant `K` must not depend on generic parameters
76
+ --> $DIR/assoc-const-eq-param-in-ty.rs:41:52
77
+ |
78
+ LL | trait Iface<'r> {
79
+ | -- the lifetime parameter `'r` is defined here
80
+ ...
81
+ LL | type Assoc<const Q: usize>: Trait<'r, Self, Q, K = { loop {} }>
82
+ | ^ its type must not depend on the lifetime parameter `'r`
83
+ |
84
+ = note: `K` has type `&'r [Self; Q]`
85
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
86
+
87
+ error: the type of the associated constant `K` must not depend on `Self`
88
+ --> $DIR/assoc-const-eq-param-in-ty.rs:41:52
89
+ |
90
+ LL | type Assoc<const Q: usize>: Trait<'r, Self, Q, K = { loop {} }>
91
+ | ^ its type must not depend on `Self`
92
+ |
93
+ = note: `K` has type `&'r [Self; Q]`
94
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
95
+
96
+ error: the type of the associated constant `K` must not depend on generic parameters
97
+ --> $DIR/assoc-const-eq-param-in-ty.rs:41:52
98
+ |
99
+ LL | type Assoc<const Q: usize>: Trait<'r, Self, Q, K = { loop {} }>
100
+ | - ^ its type must not depend on the const parameter `Q`
101
+ | |
102
+ | the const parameter `Q` is defined here
103
+ |
104
+ = note: `K` has type `&'r [Self; Q]`
105
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
106
+
107
+ error: aborting due to 11 previous errors
76
108
0 commit comments