diff options
| author | Corentin Henry <corentinhenry@gmail.com> | 2018-01-26 07:33:58 -0800 |
|---|---|---|
| committer | Corentin Henry <corentinhenry@gmail.com> | 2018-01-26 08:21:58 -0800 |
| commit | 077d3434aa8a2a3064afcc1c9406a49d0acf0a8d (patch) | |
| tree | 5adab84458ed371962802f5182dc21ff3e157662 /src/libstd/process.rs | |
| parent | 9e6ed17c4f5befef64fa9e8a1d2b2f155c345cac (diff) | |
| download | rust-077d3434aa8a2a3064afcc1c9406a49d0acf0a8d.tar.gz rust-077d3434aa8a2a3064afcc1c9406a49d0acf0a8d.zip | |
add test checking that process::Command is Send
Diffstat (limited to 'src/libstd/process.rs')
| -rw-r--r-- | src/libstd/process.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs index 5c66ac6ddde..9b2f815b713 100644 --- a/src/libstd/process.rs +++ b/src/libstd/process.rs @@ -1843,4 +1843,10 @@ mod tests { } assert!(events > 0); } + + #[test] + fn test_command_implements_send() { + fn take_send_type<T: Send>(_: T) {} + take_send_type(Command::new("")) + } } |
