Skip to content

Commit e40fce5

Browse files
committed
alloc: remove test of unsound specialization behaviour
1 parent bbb2834 commit e40fce5

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

library/alloc/tests/vec.rs

-14
Original file line numberDiff line numberDiff line change
@@ -2345,20 +2345,6 @@ fn test_vec_swap() {
23452345
assert_eq!(n, 0);
23462346
}
23472347

2348-
#[test]
2349-
fn test_extend_from_within_spec() {
2350-
#[derive(Copy)]
2351-
struct CopyOnly;
2352-
2353-
impl Clone for CopyOnly {
2354-
fn clone(&self) -> Self {
2355-
panic!("extend_from_within must use specialization on copy");
2356-
}
2357-
}
2358-
2359-
vec![CopyOnly, CopyOnly].extend_from_within(..);
2360-
}
2361-
23622348
#[test]
23632349
fn test_extend_from_within_clone() {
23642350
let mut v = vec![String::from("sssss"), String::from("12334567890"), String::from("c")];

0 commit comments

Comments
 (0)