|
13 | 13 | /// ``` |
14 | 14 | /// use std::ops::Add; |
15 | 15 | /// |
16 | | -/// #[derive(Debug, PartialEq)] |
| 16 | +/// #[derive(Debug, Copy, Clone, PartialEq)] |
17 | 17 | /// struct Point { |
18 | 18 | /// x: i32, |
19 | 19 | /// y: i32, |
|
42 | 42 | /// ``` |
43 | 43 | /// use std::ops::Add; |
44 | 44 | /// |
45 | | -/// #[derive(Debug, PartialEq)] |
| 45 | +/// #[derive(Debug, Copy, Clone, PartialEq)] |
46 | 46 | /// struct Point<T> { |
47 | 47 | /// x: T, |
48 | 48 | /// y: T, |
@@ -115,7 +115,7 @@ add_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 } |
115 | 115 | /// ``` |
116 | 116 | /// use std::ops::Sub; |
117 | 117 | /// |
118 | | -/// #[derive(Debug, PartialEq)] |
| 118 | +/// #[derive(Debug, Copy, Clone, PartialEq)] |
119 | 119 | /// struct Point { |
120 | 120 | /// x: i32, |
121 | 121 | /// y: i32, |
@@ -657,7 +657,7 @@ neg_impl_numeric! { isize i8 i16 i32 i64 i128 f32 f64 } |
657 | 657 | /// ``` |
658 | 658 | /// use std::ops::AddAssign; |
659 | 659 | /// |
660 | | -/// #[derive(Debug, PartialEq)] |
| 660 | +/// #[derive(Debug, Copy, Clone, PartialEq)] |
661 | 661 | /// struct Point { |
662 | 662 | /// x: i32, |
663 | 663 | /// y: i32, |
@@ -715,7 +715,7 @@ add_assign_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 } |
715 | 715 | /// ``` |
716 | 716 | /// use std::ops::SubAssign; |
717 | 717 | /// |
718 | | -/// #[derive(Debug, PartialEq)] |
| 718 | +/// #[derive(Debug, Copy, Clone, PartialEq)] |
719 | 719 | /// struct Point { |
720 | 720 | /// x: i32, |
721 | 721 | /// y: i32, |
|
0 commit comments