about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAndrew Paseltiner <apaseltiner@gmail.com>2015-10-23 20:15:33 -0400
committerAndrew Paseltiner <apaseltiner@gmail.com>2015-10-23 20:15:33 -0400
commitb83235f76f6afd4c95f769d19a818be7f5e1c00a (patch)
tree4dad37bc772f955df816c667c86007ef6a6f12ae /src
parent525ab4a4139f32732f222d39f5cc00ad08951910 (diff)
downloadrust-b83235f76f6afd4c95f769d19a818be7f5e1c00a.tar.gz
rust-b83235f76f6afd4c95f769d19a818be7f5e1c00a.zip
Add test for #22403
Closes #22403.
Diffstat (limited to 'src')
-rw-r--r--src/test/run-pass/issue-22403.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-22403.rs b/src/test/run-pass/issue-22403.rs
new file mode 100644
index 00000000000..7bd66e5a83d
--- /dev/null
+++ b/src/test/run-pass/issue-22403.rs
@@ -0,0 +1,15 @@
+// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+fn main() {
+    let x = Box::new([1, 2, 3]);
+    let y = x as Box<[i32]>;
+    println!("y: {:?}", y);
+}