summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-33287.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-33287.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-33287.rs b/src/test/ui/issues/issue-33287.rs
new file mode 100644
index 000000000..770eb7c02
--- /dev/null
+++ b/src/test/ui/issues/issue-33287.rs
@@ -0,0 +1,10 @@
+// build-pass
+#![allow(dead_code)]
+#![allow(unused_variables)]
+const A: [u32; 1] = [0];
+
+fn test() {
+ let range = A[1]..;
+}
+
+fn main() { }