Revert a test change to make sure it's still testing the original issue

This commit is contained in:
Oliver Scherer 2020-09-24 17:11:47 +02:00
parent fc9f2947da
commit daf976f612
2 changed files with 2 additions and 2 deletions

View File

@ -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
_ => {}
}
}

View File

@ -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