about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorCorentin Henry <corentinhenry@gmail.com>2018-01-26 07:33:58 -0800
committerCorentin Henry <corentinhenry@gmail.com>2018-01-26 08:21:58 -0800
commit077d3434aa8a2a3064afcc1c9406a49d0acf0a8d (patch)
tree5adab84458ed371962802f5182dc21ff3e157662 /src/libstd
parent9e6ed17c4f5befef64fa9e8a1d2b2f155c345cac (diff)
downloadrust-077d3434aa8a2a3064afcc1c9406a49d0acf0a8d.tar.gz
rust-077d3434aa8a2a3064afcc1c9406a49d0acf0a8d.zip
add test checking that process::Command is Send
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/process.rs6
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(""))
+    }
 }