alloc: remove test of unsound specialization behaviour

This commit is contained in:
joboet 2025-02-11 11:16:45 +01:00
parent e4e765b1f6
commit 47342cf971
No known key found for this signature in database
GPG key ID: 704E0149B0194B3C

View file

@ -2299,20 +2299,6 @@ fn test_vec_swap() {
assert_eq!(n, 0);
}
#[test]
fn test_extend_from_within_spec() {
#[derive(Copy)]
struct CopyOnly;
impl Clone for CopyOnly {
fn clone(&self) -> Self {
panic!("extend_from_within must use specialization on copy");
}
}
vec![CopyOnly, CopyOnly].extend_from_within(..);
}
#[test]
fn test_extend_from_within_clone() {
let mut v = vec![String::from("sssss"), String::from("12334567890"), String::from("c")];