From f1f83ef8f84c15ab5292cd2dbbb0c7b0f14cbc1e Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Tue, 26 Nov 2019 12:37:55 -0500 Subject: [PATCH] Test multiple variants Co-Authored-By: Mazdak Farrokhzad --- src/test/ui/consts/control-flow/single-arm-match-wild.rs | 2 ++ 1 file changed, 2 insertions(+) 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 59a42bb05caf..fba6e3583cc2 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); }