diff options
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.rs | 4 | 
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 db941a440e1..0d0765e971d 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 @@ -14,6 +14,10 @@ where Vec::<A>::new() } +pub fn yes_array_into_vec<T>() -> Vec<T> { + [].into() +} + use std::collections::VecDeque; pub fn yes_vecdeque_partial_eq_array<A, B>() -> impl PartialEq<[B; 32]> | 
