We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c2a3761 + 6bb9822 commit 32c567cCopy full SHA for 32c567c
rust-version
@@ -1 +1 @@
1
-dd333ca66f20edafdda2d9f405ffa1acdc958821
+01706e1a34c87656fcbfce198608f4cd2ac6461a
tests/pass/shims/pipe.rs
@@ -1,10 +1,11 @@
//@ignore-target: windows
2
3
#![feature(anonymous_pipe)]
4
-use std::io::{Read, Write};
+
5
+use std::io::{Read, Write, pipe};
6
7
fn main() {
- let (mut ping_rx, mut ping_tx) = std::pipe::pipe().unwrap();
8
+ let (mut ping_rx, mut ping_tx) = pipe().unwrap();
9
ping_tx.write(b"hello").unwrap();
10
let mut buf: [u8; 5] = [0; 5];
11
ping_rx.read(&mut buf).unwrap();
0 commit comments