about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2019-01-06 11:08:34 -0500
committerGitHub <noreply@github.com>2019-01-06 11:08:34 -0500
commit319a2c1cc2a4d99d5b1d6fb424c77963fd668f24 (patch)
treeed11dab1fce64f7f0069a1cce4e6a08de1b6ea66
parent0d3dfdf6aadd7dd241956fa234bdd01de7291e5f (diff)
downloadrust-319a2c1cc2a4d99d5b1d6fb424c77963fd668f24.tar.gz
rust-319a2c1cc2a4d99d5b1d6fb424c77963fd668f24.zip
add missing derive to fix compile error
-rw-r--r--src/libcore/cmp.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs
index 89afe7057b1..5b78aa632d1 100644
--- a/src/libcore/cmp.rs
+++ b/src/libcore/cmp.rs
@@ -65,6 +65,7 @@ use self::Ordering::*;
 /// the same book if their ISBN matches, even if the formats differ:
 ///
 /// ```
+/// #[derive(PartialEq)]
 /// enum BookFormat {
 ///     Paperback,
 ///     Hardback,