summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/match-range-static.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/binding/match-range-static.rs')
-rw-r--r--src/test/ui/binding/match-range-static.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/binding/match-range-static.rs b/src/test/ui/binding/match-range-static.rs
new file mode 100644
index 000000000..f01a3505e
--- /dev/null
+++ b/src/test/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 => (),
+ _ => (),
+ }
+}