diff --git a/tests/pass/shims/pipe.rs b/tests/pass/shims/pipe.rs index d547b2b1cc..1be29886d2 100644 --- a/tests/pass/shims/pipe.rs +++ b/tests/pass/shims/pipe.rs @@ -1,10 +1,11 @@ //@ignore-target: windows #![feature(anonymous_pipe)] -use std::io::{Read, Write}; + +use std::io::{Read, Write, pipe}; fn main() { - let (mut ping_rx, mut ping_tx) = std::pipe::pipe().unwrap(); + let (mut ping_rx, mut ping_tx) = pipe().unwrap(); ping_tx.write(b"hello").unwrap(); let mut buf: [u8; 5] = [0; 5]; ping_rx.read(&mut buf).unwrap();