mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 12:37:37 +00:00

- Remove already stable feature gate and remove `#![allow(stable_features)]`. - Replace `ignore-*` with `needs-subprocess`.
20 lines
424 B
Rust
20 lines
424 B
Rust
//@ run-pass
|
|
//@ needs-subprocess
|
|
|
|
#[cfg(unix)]
|
|
fn main() {
|
|
use std::process::Command;
|
|
use std::env;
|
|
use std::os::unix::prelude::*;
|
|
use std::ffi::OsStr;
|
|
|
|
if env::args().len() == 1 {
|
|
assert!(Command::new(&env::current_exe().unwrap())
|
|
.arg(<OsStr as OsStrExt>::from_bytes(b"\xff"))
|
|
.status().unwrap().success())
|
|
}
|
|
}
|
|
|
|
#[cfg(windows)]
|
|
fn main() {}
|