alloc: remove test of unsound specialization behaviour
This commit is contained in:
parent
e4e765b1f6
commit
47342cf971
1 changed files with 0 additions and 14 deletions
|
|
@ -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")];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue