diff --git a/library/std/src/io/util.rs b/library/std/src/io/util.rs index fd52de7430a20..a8812f197d82d 100644 --- a/library/std/src/io/util.rs +++ b/library/std/src/io/util.rs @@ -14,6 +14,7 @@ use crate::io::{ /// the documentation of [`empty()`] for more details. #[stable(feature = "rust1", since = "1.0.0")] #[non_exhaustive] +#[derive(Copy, Clone, Default)] pub struct Empty; /// Constructs a new handle to an empty reader. @@ -172,6 +173,7 @@ impl fmt::Debug for Repeat { /// see the documentation of [`sink()`] for more details. #[stable(feature = "rust1", since = "1.0.0")] #[non_exhaustive] +#[derive(Copy, Clone, Default)] pub struct Sink; /// Creates an instance of a writer which will successfully consume all data.