diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2019-11-26 12:37:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-26 12:37:55 -0500 |
| commit | f1f83ef8f84c15ab5292cd2dbbb0c7b0f14cbc1e (patch) | |
| tree | fb89828440cebdc4a0dfdd2e0809ad0e2b805bdd | |
| parent | 37f440fd9a3d6c79647549bf559d2c19712b83d9 (diff) | |
| download | rust-f1f83ef8f84c15ab5292cd2dbbb0c7b0f14cbc1e.tar.gz rust-f1f83ef8f84c15ab5292cd2dbbb0c7b0f14cbc1e.zip | |
Test multiple variants
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
| -rw-r--r-- | src/test/ui/consts/control-flow/single-arm-match-wild.rs | 2 |
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); } |
