From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- third_party/rust/tokio/tests/sync_errors.rs | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 third_party/rust/tokio/tests/sync_errors.rs (limited to 'third_party/rust/tokio/tests/sync_errors.rs') diff --git a/third_party/rust/tokio/tests/sync_errors.rs b/third_party/rust/tokio/tests/sync_errors.rs new file mode 100644 index 0000000000..2eac585d40 --- /dev/null +++ b/third_party/rust/tokio/tests/sync_errors.rs @@ -0,0 +1,30 @@ +#![warn(rust_2018_idioms)] +#![cfg(feature = "sync")] + +#[cfg(target_arch = "wasm32")] +use wasm_bindgen_test::wasm_bindgen_test as test; + +fn is_error() {} + +#[test] +fn mpsc_error_bound() { + use tokio::sync::mpsc::error; + + is_error::>(); + is_error::>(); +} + +#[test] +fn oneshot_error_bound() { + use tokio::sync::oneshot::error; + + is_error::(); + is_error::(); +} + +#[test] +fn watch_error_bound() { + use tokio::sync::watch::error; + + is_error::>(); +} -- cgit v1.2.3