Skip to content

Commit daf976f

Browse files
committed
Revert a test change to make sure it's still testing the original issue
1 parent fc9f294 commit daf976f

2 files changed

+2
-2
lines changed

src/test/ui/pattern/issue-71042-opaquely-typed-constant-used-in-pattern.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
fn main() {
55
const C: impl Copy = 0;
66
match C {
7-
C => {} //~ ERROR: `impl Copy` cannot be used in patterns
7+
C | //~ ERROR: `impl Copy` cannot be used in patterns
88
_ => {}
99
}
1010
}

src/test/ui/pattern/issue-71042-opaquely-typed-constant-used-in-pattern.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: `impl Copy` cannot be used in patterns
22
--> $DIR/issue-71042-opaquely-typed-constant-used-in-pattern.rs:7:9
33
|
4-
LL | C => {}
4+
LL | C |
55
| ^
66

77
error: aborting due to previous error

0 commit comments

Comments
 (0)