@@ -44,26 +44,26 @@ LL | fn take2<P: Project<SELF = {}>>(_: P) {}
4444 = note: `SELF` has type `P`
4545
4646error: 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
4848 |
4949LL | trait Iface<'r> {
5050 | -- the lifetime parameter `'r` is defined here
51- LL |
51+ ...
5252LL | type Assoc<const Q: usize>: Trait<'r, Self, Q, K = { loop {} }>
5353 | ^ its type must not depend on the lifetime parameter `'r`
5454 |
5555 = note: `K` has type `&'r [Self; Q]`
5656
5757error: 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
5959 |
6060LL | type Assoc<const Q: usize>: Trait<'r, Self, Q, K = { loop {} }>
6161 | ^ its type must not depend on `Self`
6262 |
6363 = note: `K` has type `&'r [Self; Q]`
6464
6565error: 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
6767 |
6868LL | type Assoc<const Q: usize>: Trait<'r, Self, Q, K = { loop {} }>
6969 | - ^ 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 {} }>
7272 |
7373 = note: `K` has type `&'r [Self; Q]`
7474
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
76108
0 commit comments