diff options
Diffstat (limited to 'tests/ui/consts/const-eval/const_signed_pat.rs')
-rw-r--r-- | tests/ui/consts/const-eval/const_signed_pat.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/consts/const-eval/const_signed_pat.rs b/tests/ui/consts/const-eval/const_signed_pat.rs new file mode 100644 index 000000000..c61239bb6 --- /dev/null +++ b/tests/ui/consts/const-eval/const_signed_pat.rs @@ -0,0 +1,9 @@ +// check-pass + +fn main() { + const MIN: i8 = -5; + match 5i8 { + MIN..=-1 => {}, + _ => {}, + } +} |