diff --git a/src/dox.rs b/src/dox.rs index 1aea62d0211e3f5046947a2dedba6835177e54e7..1c93efe7086b63ad37d7aa416aef6f634726b04c 100644 --- a/src/dox.rs +++ b/src/dox.rs @@ -19,6 +19,16 @@ mod imp { fn clone(&self) -> Option<T> { loop {} } } + impl<T> Copy for *mut T {} + impl<T> Clone for *mut T { + fn clone(&self) -> *mut T { loop {} } + } + + impl<T> Copy for *const T {} + impl<T> Clone for *const T { + fn clone(&self) -> *const T { loop {} } + } + pub trait Clone { fn clone(&self) -> Self; } @@ -140,6 +150,10 @@ mod imp { type Output = $i; fn add(self, other: $i) -> $i { self + other } } + impl Copy for $i {} + impl Clone for $i { + fn clone(&self) -> $i { loop {} } + } )*) } each_int!(impl_traits);