docs: add another derive for Copyable struct

This adds another `derive` for a `Copy`able struct, so that we are
consistent with `derive` annotations.
This commit is contained in:
Jan Riemer 2020-08-18 18:40:19 +02:00
parent 56daf63d10
commit 522d177f34

View file

@ -291,6 +291,7 @@ pub trait StructuralEq {
///
/// ```
/// # #[allow(dead_code)]
/// #[derive(Copy, Clone)]
/// struct Point {
/// x: i32,
/// y: i32,