@@ -5,7 +5,6 @@ LL |   impl Tr3<N
55   |  __________^
66LL | |
77LL | |
8- LL | |
98LL | | = 42, T2 = Qux, T3 = usize> for Bar {
109   | |____^
1110   |
@@ -14,7 +13,7 @@ LL | | = 42, T2 = Qux, T3 = usize> for Bar {
1413   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1514
1615error[E0658]: associated const equality is incomplete
17-   --> $DIR/associated-types-eq-2.rs:85 :10
16+   --> $DIR/associated-types-eq-2.rs:84 :10
1817   |
1918LL | impl Tr3<n = 42, T2 = Qux, T3 = usize> for Qux {
2019   |          ^^^^^^
@@ -24,7 +23,7 @@ LL | impl Tr3<n = 42, T2 = Qux, T3 = usize> for Qux {
2423   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2524
2625error[E0658]: associated const equality is incomplete
27-   --> $DIR/associated-types-eq-2.rs:100 :14
26+   --> $DIR/associated-types-eq-2.rs:98 :14
2827   |
2928LL | impl Tr3<42, T2 = 42, T3 = usize> for Bar {
3029   |              ^^^^^^^
@@ -34,7 +33,7 @@ LL | impl Tr3<42, T2 = 42, T3 = usize> for Bar {
3433   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
3534
3635error[E0658]: associated const equality is incomplete
37-   --> $DIR/associated-types-eq-2.rs:108 :10
36+   --> $DIR/associated-types-eq-2.rs:106 :10
3837   |
3938LL | impl Tr3<X = 42, Y = Qux, Z = usize> for Bar {
4039   |          ^^^^^^
@@ -190,30 +189,13 @@ help: to use `GenericTerm<i32>` as a generic argument specify it directly
190189LL | impl Tr2<i32, Qux, GenericTerm<i32>> for Bar {
191190   |                    ~~~~~~~~~~~~~~~~
192191
193- error[E0107]: trait takes 3 generic arguments but 0 generic arguments were supplied
194-   --> $DIR/associated-types-eq-2.rs:76:6
195-    |
196- LL | impl Tr3<N
197-    |      ^^^ expected 3 generic arguments
198-    |
199- note: trait defined here, with 3 generic parameters: `N`, `T2`, `T3`
200-   --> $DIR/associated-types-eq-2.rs:69:7
201-    |
202- LL | trait Tr3<const N: i32, T2, T3> {
203-    |       ^^^ ------------  --  --
204- help: add missing generic arguments
205-    |
206- LL | impl Tr3<N, T2, T3, N
207-    |          ++++++++++
208- 
209192error[E0229]: associated item constraints are not allowed here
210193  --> $DIR/associated-types-eq-2.rs:76:10
211194   |
212195LL |   impl Tr3<N
213196   |  __________^
214197LL | |
215198LL | |
216- LL | |
217199LL | | = 42, T2 = Qux, T3 = usize> for Bar {
218200   | |____^ associated item constraint not allowed here
219201   |
@@ -223,7 +205,7 @@ LL | impl Tr3<42, T2 = Qux, T3 = usize> for Bar {
223205   |          ~~
224206
225207error[E0107]: trait takes 3 generic arguments but 0 generic arguments were supplied
226-   --> $DIR/associated-types-eq-2.rs:85 :6
208+   --> $DIR/associated-types-eq-2.rs:84 :6
227209   |
228210LL | impl Tr3<n = 42, T2 = Qux, T3 = usize> for Qux {
229211   |      ^^^ expected 3 generic arguments
@@ -239,7 +221,7 @@ LL | impl Tr3<N, T2, T3, n = 42, T2 = Qux, T3 = usize> for Qux {
239221   |          ++++++++++
240222
241223error[E0229]: associated item constraints are not allowed here
242-   --> $DIR/associated-types-eq-2.rs:85 :10
224+   --> $DIR/associated-types-eq-2.rs:84 :10
243225   |
244226LL | impl Tr3<n = 42, T2 = Qux, T3 = usize> for Qux {
245227   |          ^^^^^^ associated item constraint not allowed here
@@ -249,24 +231,8 @@ help: consider removing this associated item binding
249231LL | impl Tr3<n = 42, T2 = Qux, T3 = usize> for Qux {
250232   |          ~~~~~~~
251233
252- error[E0107]: trait takes 3 generic arguments but 0 generic arguments were supplied
253-   --> $DIR/associated-types-eq-2.rs:93:6
254-    |
255- LL | impl Tr3<N = u32, T2 = Qux, T3 = usize> for Bar {
256-    |      ^^^ expected 3 generic arguments
257-    |
258- note: trait defined here, with 3 generic parameters: `N`, `T2`, `T3`
259-   --> $DIR/associated-types-eq-2.rs:69:7
260-    |
261- LL | trait Tr3<const N: i32, T2, T3> {
262-    |       ^^^ ------------  --  --
263- help: add missing generic arguments
264-    |
265- LL | impl Tr3<N, T2, T3, N = u32, T2 = Qux, T3 = usize> for Bar {
266-    |          ++++++++++
267- 
268234error[E0229]: associated item constraints are not allowed here
269-   --> $DIR/associated-types-eq-2.rs:93 :10
235+   --> $DIR/associated-types-eq-2.rs:92 :10
270236   |
271237LL | impl Tr3<N = u32, T2 = Qux, T3 = usize> for Bar {
272238   |          ^^^^^^^ associated item constraint not allowed here
@@ -277,7 +243,7 @@ LL | impl Tr3<N = u32, T2 = Qux, T3 = usize> for Bar {
277243   |          ~~~~~~~~
278244
279245error[E0107]: trait takes 3 generic arguments but 1 generic argument was supplied
280-   --> $DIR/associated-types-eq-2.rs:100 :6
246+   --> $DIR/associated-types-eq-2.rs:98 :6
281247   |
282248LL | impl Tr3<42, T2 = 42, T3 = usize> for Bar {
283249   |      ^^^ -- supplied 1 generic argument
@@ -295,7 +261,7 @@ LL | impl Tr3<42, T2, T3, T2 = 42, T3 = usize> for Bar {
295261   |            ++++++++
296262
297263error[E0229]: associated item constraints are not allowed here
298-   --> $DIR/associated-types-eq-2.rs:100 :14
264+   --> $DIR/associated-types-eq-2.rs:98 :14
299265   |
300266LL | impl Tr3<42, T2 = 42, T3 = usize> for Bar {
301267   |              ^^^^^^^ associated item constraint not allowed here
@@ -306,7 +272,7 @@ LL | impl Tr3<42, T2 = 42, T3 = usize> for Bar {
306272   |            ~~~~~~~~~
307273
308274error[E0107]: trait takes 3 generic arguments but 0 generic arguments were supplied
309-   --> $DIR/associated-types-eq-2.rs:108 :6
275+   --> $DIR/associated-types-eq-2.rs:106 :6
310276   |
311277LL | impl Tr3<X = 42, Y = Qux, Z = usize> for Bar {
312278   |      ^^^ expected 3 generic arguments
@@ -322,7 +288,7 @@ LL | impl Tr3<N, T2, T3, X = 42, Y = Qux, Z = usize> for Bar {
322288   |          ++++++++++
323289
324290error[E0229]: associated item constraints are not allowed here
325-   --> $DIR/associated-types-eq-2.rs:108 :10
291+   --> $DIR/associated-types-eq-2.rs:106 :10
326292   |
327293LL | impl Tr3<X = 42, Y = Qux, Z = usize> for Bar {
328294   |          ^^^^^^ associated item constraint not allowed here
@@ -333,13 +299,13 @@ LL | impl Tr3<X = 42, Y = Qux, Z = usize> for Bar {
333299   |          ~~~~~~~
334300
335301error[E0107]: struct takes 1 generic argument but 0 generic arguments were supplied
336-   --> $DIR/associated-types-eq-2.rs:119 :13
302+   --> $DIR/associated-types-eq-2.rs:117 :13
337303   |
338304LL | impl<'a, T> St<'a , T = Qux> {
339305   |             ^^ expected 1 generic argument
340306   |
341307note: struct defined here, with 1 generic parameter: `T`
342-   --> $DIR/associated-types-eq-2.rs:117 :8
308+   --> $DIR/associated-types-eq-2.rs:115 :8
343309   |
344310LL | struct St<'a, T> { v: &'a T }
345311   |        ^^     -
@@ -349,7 +315,7 @@ LL | impl<'a, T> St<'a, T , T = Qux> {
349315   |                  +++
350316
351317error[E0229]: associated item constraints are not allowed here
352-   --> $DIR/associated-types-eq-2.rs:119 :21
318+   --> $DIR/associated-types-eq-2.rs:117 :21
353319   |
354320LL | impl<'a, T> St<'a , T = Qux> {
355321   |                     ^^^^^^^ associated item constraint not allowed here
@@ -359,7 +325,7 @@ help: to use `Qux` as a generic argument specify it directly
359325LL | impl<'a, T> St<'a , Qux> {
360326   |                     ~~~
361327
362- error: aborting due to 27  previous errors
328+ error: aborting due to 25  previous errors
363329
364330Some errors have detailed explanations: E0046, E0107, E0229, E0658.
365331For more information about an error, try `rustc --explain E0046`.
0 commit comments