We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbb2834 commit e40fce5Copy full SHA for e40fce5
library/alloc/tests/vec.rs
@@ -2345,20 +2345,6 @@ fn test_vec_swap() {
2345
assert_eq!(n, 0);
2346
}
2347
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
2362
#[test]
2363
fn test_extend_from_within_clone() {
2364
let mut v = vec![String::from("sssss"), String::from("12334567890"), String::from("c")];
0 commit comments