summaryrefslogtreecommitdiff
path: root/tests/ui/associated-consts
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-02-19 18:44:08 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-07-15 22:02:16 +0000
commit87233da5c2557ba958fb1addabad2e2b63bc1490 (patch)
tree936331ff1a1433db0970f81651c7e5d69431eaad /tests/ui/associated-consts
parent4d6e4260b2de66a356a2536320f339467dff0d2b (diff)
Check entry type as part of item type checking.
Diffstat (limited to 'tests/ui/associated-consts')
-rw-r--r--tests/ui/associated-consts/issue-105330.stderr12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/associated-consts/issue-105330.stderr b/tests/ui/associated-consts/issue-105330.stderr
index bbafc55dac3..e9fe3a5e514 100644
--- a/tests/ui/associated-consts/issue-105330.stderr
+++ b/tests/ui/associated-consts/issue-105330.stderr
@@ -39,6 +39,12 @@ error[E0562]: `impl Trait` only allowed in function and inherent method return t
LL | impl TraitWAssocConst for impl Demo {
| ^^^^^^^^^
+error[E0131]: `main` function is not allowed to have generic parameters
+ --> $DIR/issue-105330.rs:17:8
+ |
+LL | fn main<A: TraitWAssocConst<A=32>>() {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` cannot have generic parameters
+
error[E0277]: the trait bound `Demo: TraitWAssocConst` is not satisfied
--> $DIR/issue-105330.rs:12:11
|
@@ -101,12 +107,6 @@ note: required by a bound in `foo`
LL | fn foo<A: TraitWAssocConst<A=32>>() {
| ^^^^ required by this bound in `foo`
-error[E0131]: `main` function is not allowed to have generic parameters
- --> $DIR/issue-105330.rs:17:8
- |
-LL | fn main<A: TraitWAssocConst<A=32>>() {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` cannot have generic parameters
-
error: aborting due to 11 previous errors
Some errors have detailed explanations: E0131, E0271, E0277, E0404, E0562, E0618, E0658.