]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/windows-spawn/spawn.rs
Rollup merge of #107348 - lcnr:project-solve-new, r=compiler-errors
[rust.git] / tests / run-make-fulldeps / windows-spawn / spawn.rs
1 use std::io::ErrorKind;
2 use std::process::Command;
3
4 fn main() {
5     // Make sure it doesn't try to run "hopefullydoesntexist bar.exe".
6     assert_eq!(Command::new("hopefullydoesntexist")
7                    .arg("bar")
8                    .spawn()
9                    .unwrap_err()
10                    .kind(),
11                ErrorKind::NotFound);
12 }