about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/io/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/rt/io/mod.rs b/src/libstd/rt/io/mod.rs
index 3b979cc2266..d1919905236 100644
--- a/src/libstd/rt/io/mod.rs
+++ b/src/libstd/rt/io/mod.rs
@@ -451,6 +451,8 @@ pub trait Writer {
 
 pub trait Stream: Reader + Writer { }
 
+impl<T: Reader + Writer> Stream for T;
+
 pub enum SeekStyle {
     /// Seek from the beginning of the stream
     SeekSet,