diff options
| author | bors <bors@rust-lang.org> | 2015-07-20 03:19:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-07-20 03:19:12 +0000 |
| commit | c70417bd1b74e08af5b23e0ba3092446302da4f8 (patch) | |
| tree | f1bb7bd0fcfccae9ccb8e80aaa40b46a5a3fdd78 | |
| parent | ef04b07239d75f2b6bb66f18855f3af695d76e1c (diff) | |
| parent | 05e2f8665d3d25744058c2477ef59dc9022fc144 (diff) | |
| download | rust-c70417bd1b74e08af5b23e0ba3092446302da4f8.tar.gz rust-c70417bd1b74e08af5b23e0ba3092446302da4f8.zip | |
Auto merge of #27132 - apasel422:issue-23491, r=arielb1
closes #23491
| -rw-r--r-- | src/test/run-pass/issue-23491.rs | 17 |
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([]); +} |
