diff --git a/src/error.rs b/src/error.rs index f13ecfc6..c76d8b32 100644 --- a/src/error.rs +++ b/src/error.rs @@ -104,3 +104,18 @@ impl fmt::Display for StatsError { } } } + +#[cfg(test)] +mod tests { + use super::*; + + fn assert_sync() {} + fn assert_send() {} + + #[test] + fn test_sync_send() { + // Error types should implement Sync and Send + let _ = assert_sync::(); + let _ = assert_send::(); + } +}