summaryrefslogtreecommitdiff
path: root/tests/ui/pattern
diff options
context:
space:
mode:
authorbohan <bohan-zhang@foxmail.com>2023-05-10 22:35:01 +0800
committerbohan <bohan-zhang@foxmail.com>2023-05-10 22:35:01 +0800
commit7c1bc0353b8c13edc6e3cb8e0a37e876f06da7b7 (patch)
tree4284f750661f17148ef3ca8b6fd09b5aca3a01be /tests/ui/pattern
parent25444e5a2e7293dbb4932df1301b9be4222244fe (diff)
downloadrust-7c1bc0353b8c13edc6e3cb8e0a37e876f06da7b7.tar.gz
refactor(resolve): clean up the early error return caused by non-call
Diffstat (limited to 'tests/ui/pattern')
-rw-r--r--tests/ui/pattern/pattern-error-continue.stderr15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/ui/pattern/pattern-error-continue.stderr b/tests/ui/pattern/pattern-error-continue.stderr
index e1349fb02ea..10fcccb0301 100644
--- a/tests/ui/pattern/pattern-error-continue.stderr
+++ b/tests/ui/pattern/pattern-error-continue.stderr
@@ -1,9 +1,3 @@
-error[E0433]: failed to resolve: use of undeclared type `E`
- --> $DIR/pattern-error-continue.rs:33:9
- |
-LL | E::V => {}
- | ^ use of undeclared type `E`
-
error[E0532]: expected tuple struct or tuple variant, found unit variant `A::D`
--> $DIR/pattern-error-continue.rs:18:9
|
@@ -56,6 +50,15 @@ note: function defined here
LL | fn f(_c: char) {}
| ^ --------
+error[E0433]: failed to resolve: use of undeclared type `E`
+ --> $DIR/pattern-error-continue.rs:33:9
+ |
+LL | E::V => {}
+ | ^
+ | |
+ | use of undeclared type `E`
+ | help: an enum with a similar name exists: `A`
+
error: aborting due to 5 previous errors
Some errors have detailed explanations: E0023, E0308, E0433, E0532.