Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Rustup #4141

Merged
merged 8 commits into from
Jan 19, 2025
Prev Previous commit
fix location of pipe module
  • Loading branch information
RalfJung committed Jan 19, 2025
commit 6bb9822adb82831a9a9aa35c937432c08b206d5a
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
Loading