test(hyper): assert that error::Error is Send + Sync
This is a regression test for #580.
This commit is contained in:
@@ -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>();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user