From daf976f6129e5fb16effc48bf91853548774e235 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Thu, 24 Sep 2020 17:11:47 +0200 Subject: [PATCH] Revert a test change to make sure it's still testing the original issue --- .../issue-71042-opaquely-typed-constant-used-in-pattern.rs | 2 +- .../issue-71042-opaquely-typed-constant-used-in-pattern.stderr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/ui/pattern/issue-71042-opaquely-typed-constant-used-in-pattern.rs b/src/test/ui/pattern/issue-71042-opaquely-typed-constant-used-in-pattern.rs index 427f4cd8c780..65f27cf78f12 100644 --- a/src/test/ui/pattern/issue-71042-opaquely-typed-constant-used-in-pattern.rs +++ b/src/test/ui/pattern/issue-71042-opaquely-typed-constant-used-in-pattern.rs @@ -4,7 +4,7 @@ fn main() { const C: impl Copy = 0; match C { - C => {} //~ ERROR: `impl Copy` cannot be used in patterns + C | //~ ERROR: `impl Copy` cannot be used in patterns _ => {} } } diff --git a/src/test/ui/pattern/issue-71042-opaquely-typed-constant-used-in-pattern.stderr b/src/test/ui/pattern/issue-71042-opaquely-typed-constant-used-in-pattern.stderr index c22e6eb94439..62dc856be821 100644 --- a/src/test/ui/pattern/issue-71042-opaquely-typed-constant-used-in-pattern.stderr +++ b/src/test/ui/pattern/issue-71042-opaquely-typed-constant-used-in-pattern.stderr @@ -1,7 +1,7 @@ error: `impl Copy` cannot be used in patterns --> $DIR/issue-71042-opaquely-typed-constant-used-in-pattern.rs:7:9 | -LL | C => {} +LL | C | | ^ error: aborting due to previous error