]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/fmt/mod.rs
Implement `Default` for more types in the standard library
[rust.git] / src / libcore / fmt / mod.rs
index 2f02f5c21f51b8768c837f04fe07d07fe9b2d12e..0c824b5a8e69a0df1283bb4b317e74551400c216 100644 (file)
@@ -60,7 +60,7 @@ pub mod rt {
 /// occurred. Any extra information must be arranged to be transmitted through
 /// some other means.
 #[stable(feature = "rust1", since = "1.0.0")]
-#[derive(Copy, Clone, Debug)]
+#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
 pub struct Error;
 
 /// A collection of methods that are required to format a message into a stream.