diff options
author | Esteban Küber <esteban@kuber.com.ar> | 2023-01-17 01:50:45 +0000 |
---|---|---|
committer | Esteban Küber <esteban@kuber.com.ar> | 2023-01-17 01:58:37 +0000 |
commit | c847a01a3b1f620c4fdb98c75805033e768975d1 (patch) | |
tree | 85d60ad025831d5a45300a39d385614e1b645ddf /tests/ui/parser/issues | |
parent | 2d824206655bfb26cb5eed43490ee396542b153e (diff) | |
download | rust-c847a01a3b1f620c4fdb98c75805033e768975d1.tar.gz |
Emit fewer errors on patterns with possible type ascription
Diffstat (limited to 'tests/ui/parser/issues')
-rw-r--r-- | tests/ui/parser/issues/issue-87086-colon-path-sep.rs | 1 | ||||
-rw-r--r-- | tests/ui/parser/issues/issue-87086-colon-path-sep.stderr | 11 |
2 files changed, 2 insertions, 10 deletions
diff --git a/tests/ui/parser/issues/issue-87086-colon-path-sep.rs b/tests/ui/parser/issues/issue-87086-colon-path-sep.rs index 0b7b67496d6..e1ea38f2795 100644 --- a/tests/ui/parser/issues/issue-87086-colon-path-sep.rs +++ b/tests/ui/parser/issues/issue-87086-colon-path-sep.rs @@ -68,7 +68,6 @@ fn main() { Foo:Bar::Baz => {} //~^ ERROR: expected one of //~| HELP: maybe write a path separator here - //~| ERROR: failed to resolve: `Bar` is a variant, not a module } match myfoo { Foo::Bar => {} diff --git a/tests/ui/parser/issues/issue-87086-colon-path-sep.stderr b/tests/ui/parser/issues/issue-87086-colon-path-sep.stderr index ed05bfe8b0a..63b072ac4cd 100644 --- a/tests/ui/parser/issues/issue-87086-colon-path-sep.stderr +++ b/tests/ui/parser/issues/issue-87086-colon-path-sep.stderr @@ -103,7 +103,7 @@ LL | Foo::Bar::Baz => {} | ~~ error: expected one of `@` or `|`, found `:` - --> $DIR/issue-87086-colon-path-sep.rs:75:12 + --> $DIR/issue-87086-colon-path-sep.rs:74:12 | LL | Foo:Bar => {} | ^--- specifying the type of a pattern isn't supported @@ -115,12 +115,5 @@ help: maybe write a path separator here LL | Foo::Bar => {} | ~~ -error[E0433]: failed to resolve: `Bar` is a variant, not a module - --> $DIR/issue-87086-colon-path-sep.rs:68:13 - | -LL | Foo:Bar::Baz => {} - | ^^^ `Bar` is a variant, not a module - -error: aborting due to 10 previous errors +error: aborting due to 9 previous errors -For more information about this error, try `rustc --explain E0433`. |