about summary refs log tree commit diff
path: root/src/libstd/old_io
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2015-03-09 00:30:15 +0200
committerSimonas Kazlauskas <git@kazlauskas.me>2015-03-15 00:26:17 +0200
commit6e92f0580b0bfe8433df73a9139eaa72c47258b2 (patch)
tree294c43242cbeccf72d1868cbbee366d4af108bf7 /src/libstd/old_io
parent3e4be02b80a3dd27bce20870958fe0aef7e7336d (diff)
downloadrust-6e92f0580b0bfe8433df73a9139eaa72c47258b2.tar.gz
rust-6e92f0580b0bfe8433df73a9139eaa72c47258b2.zip
Use new io in print and println macroses
Diffstat (limited to 'src/libstd/old_io')
-rw-r--r--src/libstd/old_io/stdio.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/libstd/old_io/stdio.rs b/src/libstd/old_io/stdio.rs
index 34b4ec94a44..dcc34505730 100644
--- a/src/libstd/old_io/stdio.rs
+++ b/src/libstd/old_io/stdio.rs
@@ -535,18 +535,4 @@ mod tests {
         stdout();
         stderr();
     }
-
-    #[test]
-    fn capture_stdout() {
-        use old_io::{ChanReader, ChanWriter};
-
-        let (tx, rx) = channel();
-        let (mut r, w) = (ChanReader::new(rx), ChanWriter::new(tx));
-        // FIXME (#22405): Replace `Box::new` with `box` here when/if possible.
-        let _t = thread::spawn(move|| {
-            set_stdout(Box::new(w));
-            println!("hello!");
-        });
-        assert_eq!(r.read_to_string().unwrap(), "hello!\n");
-    }
 }