@@ -25,7 +25,7 @@ LL | fn foo<A: TraitWAssocConst<A=32>>() {
2525   = help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
2626
2727error[E0658]: associated const equality is incomplete
28-   --> $DIR/issue-105330.rs:17 :29
28+   --> $DIR/issue-105330.rs:15 :29
2929   |
3030LL | fn main<A: TraitWAssocConst<A=32>>() {
3131   |                             ^^^^
@@ -39,85 +39,7 @@ error[E0562]: `impl Trait` only allowed in function and inherent method argument
3939LL | impl TraitWAssocConst for impl Demo {
4040   |                           ^^^^^^^^^
4141
42- error[E0131]: `main` function is not allowed to have generic parameters
43-   --> $DIR/issue-105330.rs:17:8
44-    |
45- LL | fn main<A: TraitWAssocConst<A=32>>() {
46-    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` cannot have generic parameters
47- 
48- error[E0277]: the trait bound `Demo: TraitWAssocConst` is not satisfied
49-   --> $DIR/issue-105330.rs:12:11
50-    |
51- LL |     foo::<Demo>()();
52-    |           ^^^^ the trait `TraitWAssocConst` is not implemented for `Demo`
53-    |
54- help: this trait has no implementations, consider adding one
55-   --> $DIR/issue-105330.rs:1:1
56-    |
57- LL | pub trait TraitWAssocConst {
58-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
59- note: required by a bound in `foo`
60-   --> $DIR/issue-105330.rs:11:11
61-    |
62- LL | fn foo<A: TraitWAssocConst<A=32>>() {
63-    |           ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `foo`
64- 
65- error[E0271]: type mismatch resolving `<Demo as TraitWAssocConst>::A == 32`
66-   --> $DIR/issue-105330.rs:12:11
67-    |
68- LL |     foo::<Demo>()();
69-    |           ^^^^ expected `32`, found `<Demo as TraitWAssocConst>::A`
70-    |
71-    = note: expected constant `32`
72-               found constant `<Demo as TraitWAssocConst>::A`
73- note: required by a bound in `foo`
74-   --> $DIR/issue-105330.rs:11:28
75-    |
76- LL | fn foo<A: TraitWAssocConst<A=32>>() {
77-    |                            ^^^^ required by this bound in `foo`
78- 
79- error[E0618]: expected function, found `()`
80-   --> $DIR/issue-105330.rs:12:5
81-    |
82- LL | fn foo<A: TraitWAssocConst<A=32>>() {
83-    | ----------------------------------- `foo::<Demo>` defined here returns `()`
84- LL |     foo::<Demo>()();
85-    |     ^^^^^^^^^^^^^--
86-    |     |
87-    |     call expression requires function
88- 
89- error[E0277]: the trait bound `Demo: TraitWAssocConst` is not satisfied
90-   --> $DIR/issue-105330.rs:19:11
91-    |
92- LL |     foo::<Demo>();
93-    |           ^^^^ the trait `TraitWAssocConst` is not implemented for `Demo`
94-    |
95- help: this trait has no implementations, consider adding one
96-   --> $DIR/issue-105330.rs:1:1
97-    |
98- LL | pub trait TraitWAssocConst {
99-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
100- note: required by a bound in `foo`
101-   --> $DIR/issue-105330.rs:11:11
102-    |
103- LL | fn foo<A: TraitWAssocConst<A=32>>() {
104-    |           ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `foo`
105- 
106- error[E0271]: type mismatch resolving `<Demo as TraitWAssocConst>::A == 32`
107-   --> $DIR/issue-105330.rs:19:11
108-    |
109- LL |     foo::<Demo>();
110-    |           ^^^^ expected `32`, found `<Demo as TraitWAssocConst>::A`
111-    |
112-    = note: expected constant `32`
113-               found constant `<Demo as TraitWAssocConst>::A`
114- note: required by a bound in `foo`
115-   --> $DIR/issue-105330.rs:11:28
116-    |
117- LL | fn foo<A: TraitWAssocConst<A=32>>() {
118-    |                            ^^^^ required by this bound in `foo`
119- 
120- error: aborting due to 11 previous errors
42+ error: aborting due to 5 previous errors
12143
122- Some errors have detailed explanations: E0131, E0271, E0277,  E0404, E0562, E0618 , E0658.
123- For more information about an error, try `rustc --explain E0131 `.
44+ Some errors have detailed explanations: E0404, E0562, E0658.
45+ For more information about an error, try `rustc --explain E0404 `.
0 commit comments