Skip to content

Commit

Permalink
fix location of pipe module
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jan 19, 2025
1 parent e657e7a commit 6bb9822
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/pass/shims/pipe.rs
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit 6bb9822

Please sign in to comment.