about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2024-08-13 11:27:39 -0400
committerAntoni Boucher <bouanto@zoho.com>2024-08-13 11:31:27 -0400
commitb70a1ec0b17a5f32feca23d6e289e4c8bf534c22 (patch)
treebefb660438dba1a7e31be70b94a1d9c8ae4acc0d /tests
parentafb14f75e183b7f746984c1f0a9d55dee0e9e34e (diff)
downloadrust-b70a1ec0b17a5f32feca23d6e289e4c8bf534c22.tar.gz
rust-b70a1ec0b17a5f32feca23d6e289e4c8bf534c22.zip
Add missing impl Copy for *mut T
Diffstat (limited to 'tests')
-rw-r--r--tests/run/array.rs1
-rw-r--r--tests/run/closure.rs1
-rw-r--r--tests/run/condition.rs1
-rw-r--r--tests/run/fun_ptr.rs1
-rw-r--r--tests/run/ptr_cast.rs1
-rw-r--r--tests/run/slice.rs1
-rw-r--r--tests/run/static.rs1
7 files changed, 7 insertions, 0 deletions
diff --git a/tests/run/array.rs b/tests/run/array.rs
index 3fe8917c9a3..432f11ad8d4 100644
--- a/tests/run/array.rs
+++ b/tests/run/array.rs
@@ -31,6 +31,7 @@ impl Copy for i32 {}
 impl Copy for u8 {}
 impl Copy for i8 {}
 impl Copy for i16 {}
+impl<T: ?Sized> Copy for *mut T {}
 
 #[lang = "receiver"]
 trait Receiver {
diff --git a/tests/run/closure.rs b/tests/run/closure.rs
index 355f0acee74..00e61cc001f 100644
--- a/tests/run/closure.rs
+++ b/tests/run/closure.rs
@@ -33,6 +33,7 @@ impl Copy for i32 {}
 impl Copy for u32 {}
 impl Copy for u8 {}
 impl Copy for i8 {}
+impl<T: ?Sized> Copy for *mut T {}
 
 #[lang = "receiver"]
 trait Receiver {
diff --git a/tests/run/condition.rs b/tests/run/condition.rs
index 1b3ae6dc004..7b05b7decd3 100644
--- a/tests/run/condition.rs
+++ b/tests/run/condition.rs
@@ -34,6 +34,7 @@ impl Copy for i16 {}
 impl Copy for char {}
 impl Copy for i8 {}
 impl Copy for u8 {}
+impl<T: ?Sized> Copy for *mut T {}
 
 #[lang = "receiver"]
 trait Receiver {
diff --git a/tests/run/fun_ptr.rs b/tests/run/fun_ptr.rs
index 96030359772..4e96f376555 100644
--- a/tests/run/fun_ptr.rs
+++ b/tests/run/fun_ptr.rs
@@ -28,6 +28,7 @@ impl Copy for i32 {}
 impl Copy for u8 {}
 impl Copy for i8 {}
 impl Copy for i16 {}
+impl<T: ?Sized> Copy for *mut T {}
 
 #[lang = "receiver"]
 trait Receiver {
diff --git a/tests/run/ptr_cast.rs b/tests/run/ptr_cast.rs
index 09d77abe27c..a94279182d6 100644
--- a/tests/run/ptr_cast.rs
+++ b/tests/run/ptr_cast.rs
@@ -28,6 +28,7 @@ impl Copy for i32 {}
 impl Copy for u8 {}
 impl Copy for i8 {}
 impl Copy for i16 {}
+impl<T: ?Sized> Copy for *mut T {}
 
 #[lang = "receiver"]
 trait Receiver {
diff --git a/tests/run/slice.rs b/tests/run/slice.rs
index 1262c86c810..e86fc823a1a 100644
--- a/tests/run/slice.rs
+++ b/tests/run/slice.rs
@@ -26,6 +26,7 @@ impl Copy for isize {}
 impl Copy for usize {}
 impl Copy for i32 {}
 impl Copy for u32 {}
+impl<T: ?Sized> Copy for *mut T {}
 
 #[lang = "receiver"]
 trait Receiver {
diff --git a/tests/run/static.rs b/tests/run/static.rs
index e7c46ae3fcc..6247e08f5e3 100644
--- a/tests/run/static.rs
+++ b/tests/run/static.rs
@@ -34,6 +34,7 @@ trait Copy {
 }
 
 impl Copy for isize {}
+impl<T: ?Sized> Copy for *mut T {}
 
 #[lang = "receiver"]
 trait Receiver {