summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-17503.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-17503.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-17503.rs b/src/test/ui/issues/issue-17503.rs
new file mode 100644
index 000000000..9a92c06e1
--- /dev/null
+++ b/src/test/ui/issues/issue-17503.rs
@@ -0,0 +1,10 @@
+// run-pass
+fn main() {
+ let s: &[isize] = &[0, 1, 2, 3, 4];
+ let ss: &&[isize] = &s;
+ let sss: &&&[isize] = &ss;
+
+ println!("{:?}", &s[..3]);
+ println!("{:?}", &ss[3..]);
+ println!("{:?}", &sss[2..4]);
+}