summary refs log tree commit diff
path: root/src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-04-13 21:41:45 +0800
committerIvan Tham <pickfire@riseup.net>2020-05-20 17:00:21 +0800
commita8ed9aa9f016c60f5fa55326f1f6a30e2be9d83e (patch)
tree56f7bf57455b92ce6b730e398c43b04de63513da /src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs
parent3a7dfda40a3e798bf086bd58cc7e5e09deb808b5 (diff)
downloadrust-a8ed9aa9f016c60f5fa55326f1f6a30e2be9d83e.tar.gz
rust-a8ed9aa9f016c60f5fa55326f1f6a30e2be9d83e.zip
impl From<[T; N]> for Box<[T]>
Based on https://github.com/rust-lang/rust/pull/68692
Diffstat (limited to 'src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs')
-rw-r--r--src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs b/src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs
index 0d0765e971d..b4a083636b6 100644
--- a/src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs
+++ b/src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs
@@ -18,6 +18,10 @@ pub fn yes_array_into_vec<T>() -> Vec<T> {
     [].into()
 }
 
+pub fn yes_array_into_box<T>() -> Box<[T]> {
+    [].into()
+}
+
 use std::collections::VecDeque;
 
 pub fn yes_vecdeque_partial_eq_array<A, B>() -> impl PartialEq<[B; 32]>