Skip to content

Commit f1f83ef

Browse files
jyn514Centril
andauthored
Test multiple variants
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
1 parent 37f440f commit f1f83ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/ui/consts/control-flow/single-arm-match-wild.rs

+2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ const fn f(e: E) -> usize {
1515
}
1616

1717
fn main() {
18+
const X: usize = f(E::C);
19+
assert_eq!(X, 0);
1820
assert_eq!(f(E::A), 0);
1921
}

0 commit comments

Comments
 (0)