about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Riemer <janriemer@tutanota.de>2020-08-18 18:40:19 +0200
committerJan Riemer <janriemer@tutanota.de>2020-08-18 18:40:19 +0200
commit522d177f34e683b16d3548446aa3ff7ddd2c531c (patch)
treee68dcbeb5677b3096412df8ba9a43203bc5e1d1a
parent56daf63d10f7ade09ab0523333c65370a88c79ae (diff)
downloadrust-522d177f34e683b16d3548446aa3ff7ddd2c531c.tar.gz
rust-522d177f34e683b16d3548446aa3ff7ddd2c531c.zip
docs: add another `derive` for `Copy`able struct
This adds another `derive` for a `Copy`able struct, so that we are
consistent with `derive` annotations.
-rw-r--r--library/core/src/marker.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs
index f113f939230..9326aaf5684 100644
--- a/library/core/src/marker.rs
+++ b/library/core/src/marker.rs
@@ -291,6 +291,7 @@ pub trait StructuralEq {
 ///
 /// ```
 /// # #[allow(dead_code)]
+/// #[derive(Copy, Clone)]
 /// struct Point {
 ///    x: i32,
 ///    y: i32,