From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../array-impls/alloc-traits-impls-length-32.rs | 48 ---------------------- 1 file changed, 48 deletions(-) delete mode 100644 src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs (limited to 'src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs') 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 deleted file mode 100644 index b4a083636..000000000 --- a/src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs +++ /dev/null @@ -1,48 +0,0 @@ -// check-pass - -pub fn yes_vec_partial_eq_array() -> impl PartialEq<[B; 32]> -where - A: PartialEq, -{ - Vec::::new() -} - -pub fn yes_vec_partial_eq_ref_array<'a, A, B>() -> impl PartialEq<&'a [B; 32]> -where - A: PartialEq, -{ - Vec::::new() -} - -pub fn yes_array_into_vec() -> Vec { - [].into() -} - -pub fn yes_array_into_box() -> Box<[T]> { - [].into() -} - -use std::collections::VecDeque; - -pub fn yes_vecdeque_partial_eq_array() -> impl PartialEq<[B; 32]> -where - A: PartialEq, -{ - VecDeque::::new() -} - -pub fn yes_vecdeque_partial_eq_ref_array<'a, A, B>() -> impl PartialEq<&'a [B; 32]> -where - A: PartialEq, -{ - VecDeque::::new() -} - -pub fn yes_vecdeque_partial_eq_ref_mut_array<'a, A, B>() -> impl PartialEq<&'a mut [B; 32]> -where - A: PartialEq, -{ - VecDeque::::new() -} - -fn main() {} -- cgit v1.2.3