diff options
Diffstat (limited to 'tests/ui/binding/match-range-static.rs')
-rw-r--r-- | tests/ui/binding/match-range-static.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/binding/match-range-static.rs b/tests/ui/binding/match-range-static.rs new file mode 100644 index 000000000..f01a3505e --- /dev/null +++ b/tests/ui/binding/match-range-static.rs @@ -0,0 +1,13 @@ +// run-pass +// pretty-expanded FIXME #23616 +#![allow(non_upper_case_globals)] + +const s: isize = 1; +const e: isize = 42; + +pub fn main() { + match 7 { + s..=e => (), + _ => (), + } +} |