2020-09-02 10:40:56 +03:00
|
|
|
error[E0599]: no method named `exec` found for mutable reference `&mut Command` in the current scope
|
2025-01-23 20:38:55 +08:00
|
|
|
--> $DIR/import-visible-path-39175.rs:13:47
|
2018-10-12 13:47:37 +02:00
|
|
|
|
|
2025-01-23 15:25:18 +08:00
|
|
|
LL | let _ = Command::new("echo").arg("hello").exec();
|
|
|
|
|
| ^^^^
|
2018-10-12 13:47:37 +02:00
|
|
|
|
|
|
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2024-02-10 03:33:20 +00:00
|
|
|
help: there is a method `pre_exec` with a similar name, but with different arguments
|
|
|
|
|
--> $SRC_DIR/std/src/os/unix/process.rs:LL:COL
|
2024-02-13 23:05:23 +00:00
|
|
|
help: trait `CommandExt` which provides `exec` is implemented but not in scope; perhaps you want to import it
|
2018-10-12 13:47:37 +02:00
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use std::os::unix::process::CommandExt;
|
2018-10-12 13:47:37 +02:00
|
|
|
|
|
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-10-12 13:47:37 +02:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|