We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 829d020 + e2bfbc5 commit 90a0464Copy full SHA for 90a0464
src/dox.rs
@@ -19,6 +19,16 @@ mod imp {
19
fn clone(&self) -> Option<T> { loop {} }
20
}
21
22
+ impl<T> Copy for *mut T {}
23
+ impl<T> Clone for *mut T {
24
+ fn clone(&self) -> *mut T { loop {} }
25
+ }
26
+
27
+ impl<T> Copy for *const T {}
28
+ impl<T> Clone for *const T {
29
+ fn clone(&self) -> *const T { loop {} }
30
31
32
pub trait Clone {
33
fn clone(&self) -> Self;
34
@@ -140,6 +150,10 @@ mod imp {
140
150
type Output = $i;
141
151
fn add(self, other: $i) -> $i { self + other }
142
152
153
+ impl Copy for $i {}
154
+ impl Clone for $i {
155
+ fn clone(&self) -> $i { loop {} }
156
143
157
)*)
144
158
145
159
each_int!(impl_traits);
0 commit comments