Skip to content

Commit 582affd

Browse files
Add regression test for #66756
1 parent 2626cfb commit 582affd

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Test for <https://github.com/rust-lang/rust/issues/66756>
2+
3+
// check-pass
4+
5+
#![feature(const_if_match)]
6+
7+
enum E {
8+
A,
9+
B,
10+
C
11+
}
12+
13+
const fn f(e: E) {
14+
match e {
15+
E::A => {}
16+
E::B => {}
17+
E::C => {}
18+
}
19+
}
20+
21+
const fn g(e: E) {
22+
match e {
23+
_ => {}
24+
}
25+
}
26+
27+
fn main() {}

0 commit comments

Comments
 (0)