test(hyper): assert that error::Error is Send + Sync

This is a regression test for #580.
This commit is contained in:
Marko Lalic
2015-06-26 14:45:17 +02:00
parent 526ce994a3
commit 37e55944cf

View File

@@ -202,9 +202,11 @@ fn _assert_send<T: Send>() {
_assert_send::<Client>(); _assert_send::<Client>();
_assert_send::<client::Request<net::Fresh>>(); _assert_send::<client::Request<net::Fresh>>();
_assert_send::<client::Response>(); _assert_send::<client::Response>();
_assert_send::<error::Error>();
} }
#[allow(unconditional_recursion)] #[allow(unconditional_recursion)]
fn _assert_sync<T: Sync>() { fn _assert_sync<T: Sync>() {
_assert_sync::<Client>(); _assert_sync::<Client>();
_assert_sync::<error::Error>();
} }