summaryrefslogtreecommitdiffstats
path: root/src/test/ui/array-slice-vec/issue-15730.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/array-slice-vec/issue-15730.rs')
-rw-r--r--src/test/ui/array-slice-vec/issue-15730.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/array-slice-vec/issue-15730.rs b/src/test/ui/array-slice-vec/issue-15730.rs
new file mode 100644
index 000000000..dacffd154
--- /dev/null
+++ b/src/test/ui/array-slice-vec/issue-15730.rs
@@ -0,0 +1,9 @@
+// run-pass
+#![allow(unused_mut)]
+#![allow(unused_variables)]
+// pretty-expanded FIXME #23616
+
+fn main() {
+ let mut array = [1, 2, 3];
+ let pie_slice = &array[1..2];
+}