diff options
| author | Andrew Paseltiner <apaseltiner@gmail.com> | 2015-10-23 20:15:33 -0400 |
|---|---|---|
| committer | Andrew Paseltiner <apaseltiner@gmail.com> | 2015-10-23 20:15:33 -0400 |
| commit | b83235f76f6afd4c95f769d19a818be7f5e1c00a (patch) | |
| tree | 4dad37bc772f955df816c667c86007ef6a6f12ae /src | |
| parent | 525ab4a4139f32732f222d39f5cc00ad08951910 (diff) | |
| download | rust-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.rs | 15 |
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); +} |
