diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-22403.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-22403.rs b/src/test/ui/issues/issue-22403.rs new file mode 100644 index 000000000..8d8559094 --- /dev/null +++ b/src/test/ui/issues/issue-22403.rs @@ -0,0 +1,6 @@ +// run-pass +fn main() { + let x = Box::new([1, 2, 3]); + let y = x as Box<[i32]>; + println!("y: {:?}", y); +} |