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.
|
|
|
|
|
|
2025-01-23 15:25:18 +08:00
|
|
|
//@ run-rustfix
|
|
|
|
|
//@ only-unix (the diagnostics is influenced by `use std::os::unix::process::CommandExt;`)
|
2018-10-12 13:47:37 +02:00
|
|
|
|
|
|
|
|
use std::process::Command;
|
|
|
|
|
// use std::os::unix::process::CommandExt;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2025-01-23 15:25:18 +08:00
|
|
|
let _ = 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
|
|
|
}
|