Skip to content

Commit

Permalink
add test checking that process::Command is Send
Browse files Browse the repository at this point in the history
  • Loading branch information
little-dude committed Jan 26, 2018
1 parent 9e6ed17 commit 077d343
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libstd/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(""))
}
}

0 comments on commit 077d343

Please sign in to comment.