2018-10-12 13:47:37 +02:00
|
|
|
// This test ignores some platforms as the particular extension trait used
|
|
|
|
|
// to demonstrate the issue is only available on unix. This is fine as
|
|
|
|
|
// the fix to suggested paths is not platform-dependent and will apply on
|
|
|
|
|
// these platforms also.
|
|
|
|
|
|
|
|
|
|
// ignore-windows
|
|
|
|
|
// ignore-emscripten
|
2019-04-24 09:26:33 -07:00
|
|
|
// ignore-sgx no processes
|
2018-10-12 13:47:37 +02:00
|
|
|
|
|
|
|
|
use std::process::Command;
|
|
|
|
|
// use std::os::unix::process::CommandExt;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
Command::new("echo").arg("hello").exec();
|
2018-11-27 10:56:36 +01:00
|
|
|
//~^ ERROR no method named `exec`
|
2018-10-12 13:47:37 +02:00
|
|
|
}
|