We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e657e7a commit 6983e01Copy full SHA for 6983e01
tests/pass/shims/pipe.rs
@@ -1,10 +1,10 @@
1
//@ignore-target: windows
2
3
#![feature(anonymous_pipe)]
4
-use std::io::{Read, Write};
+use std::io::{Read, Write, pipe};
5
6
fn main() {
7
- let (mut ping_rx, mut ping_tx) = std::pipe::pipe().unwrap();
+ let (mut ping_rx, mut ping_tx) = pipe::pipe().unwrap();
8
ping_tx.write(b"hello").unwrap();
9
let mut buf: [u8; 5] = [0; 5];
10
ping_rx.read(&mut buf).unwrap();
0 commit comments