about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/ui/consts/control-flow/single-arm-match-wild.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/ui/consts/control-flow/single-arm-match-wild.rs b/src/test/ui/consts/control-flow/single-arm-match-wild.rs
index 59a42bb05ca..fba6e3583cc 100644
--- a/src/test/ui/consts/control-flow/single-arm-match-wild.rs
+++ b/src/test/ui/consts/control-flow/single-arm-match-wild.rs
@@ -15,5 +15,7 @@ const fn f(e: E) -> usize {
 }
 
 fn main() {
+    const X: usize = f(E::C);
+    assert_eq!(X, 0);
     assert_eq!(f(E::A), 0);
 }