diff options
author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-05-16 11:39:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 11:39:38 +0200 |
commit | f65281534f99754d94388e705cdc40c047093dee (patch) | |
tree | 3735f280a9dd25d3b556019c33361fa9dd34eec1 /tests/ui/pattern | |
parent | 3ea9ad532474343426e564b997891e459cda89a6 (diff) | |
parent | 7c1bc0353b8c13edc6e3cb8e0a37e876f06da7b7 (diff) | |
download | rust-f65281534f99754d94388e705cdc40c047093dee.tar.gz |
Rollup merge of #111428 - bvanjoi:fix-109250, r=Nilstrieb
refactor(resolve): clean up the early error return caused by non-call
closes https://github.com/rust-lang/rust/issues/109250
It seems no bad happened, r? ``@Nilstrieb``
Diffstat (limited to 'tests/ui/pattern')
-rw-r--r-- | tests/ui/pattern/pattern-error-continue.stderr | 15 |
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. |