about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Paseltiner <apaseltiner@gmail.com>2015-07-19 15:46:57 -0400
committerAndrew Paseltiner <apaseltiner@gmail.com>2015-07-19 15:46:57 -0400
commit05e2f8665d3d25744058c2477ef59dc9022fc144 (patch)
treea6542c0d2ede3ab0ea4ef3b83a2a1683f2aadd6d
parent58fb9b5c2d2f45b95866171720244edc1d06cde2 (diff)
downloadrust-05e2f8665d3d25744058c2477ef59dc9022fc144.tar.gz
rust-05e2f8665d3d25744058c2477ef59dc9022fc144.zip
add test for #23491
closes #23491
-rw-r--r--src/test/run-pass/issue-23491.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-23491.rs b/src/test/run-pass/issue-23491.rs
new file mode 100644
index 00000000000..5ec228217ed
--- /dev/null
+++ b/src/test/run-pass/issue-23491.rs
@@ -0,0 +1,17 @@
+// 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.
+
+#![feature(box_syntax)]
+
+struct Node<T: ?Sized>(T);
+
+fn main() {
+    let x: Box<Node<[isize]>> = box Node([]);
+}