Rollup merge of #21602 - japaric:derive-copy, r=alexcrichton
This commit is contained in:
commit
51ff9e82ec
99 changed files with 136 additions and 289 deletions
|
|
@ -445,10 +445,9 @@ rem_float_impl! { f64, fmod }
|
|||
/// ```
|
||||
/// use std::ops::Neg;
|
||||
///
|
||||
/// #[derive(Copy)]
|
||||
/// struct Foo;
|
||||
///
|
||||
/// impl Copy for Foo {}
|
||||
///
|
||||
/// impl Neg for Foo {
|
||||
/// type Output = Foo;
|
||||
///
|
||||
|
|
@ -522,10 +521,9 @@ neg_uint_impl! { u64, i64 }
|
|||
/// ```
|
||||
/// use std::ops::Not;
|
||||
///
|
||||
/// #[derive(Copy)]
|
||||
/// struct Foo;
|
||||
///
|
||||
/// impl Copy for Foo {}
|
||||
///
|
||||
/// impl Not for Foo {
|
||||
/// type Output = Foo;
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue