We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96788aa commit 5446955Copy full SHA for 5446955
src/tools/miri/tests/pass/shims/pipe.rs
@@ -1,10 +1,11 @@
1
//@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