Skip to content

Commit 077d343

Browse files
committed
add test checking that process::Command is Send
1 parent 9e6ed17 commit 077d343

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libstd/process.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1843,4 +1843,10 @@ mod tests {
18431843
}
18441844
assert!(events > 0);
18451845
}
1846+
1847+
#[test]
1848+
fn test_command_implements_send() {
1849+
fn take_send_type<T: Send>(_: T) {}
1850+
take_send_type(Command::new(""))
1851+
}
18461852
}

0 commit comments

Comments
 (0)