mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
18 lines
418 B
Rust
18 lines
418 B
Rust
#![deny(warnings)]
|
|
|
|
extern crate tokio_sync;
|
|
|
|
use tokio_sync::mpsc::error;
|
|
|
|
fn is_error<T: ::std::error::Error + Send + Sync>() {}
|
|
|
|
#[test]
|
|
fn error_bound() {
|
|
is_error::<error::RecvError>();
|
|
is_error::<error::SendError>();
|
|
is_error::<error::TrySendError<()>>();
|
|
is_error::<error::UnboundedRecvError>();
|
|
is_error::<error::UnboundedSendError>();
|
|
is_error::<error::UnboundedTrySendError<()>>();
|
|
}
|