diff --git a/heed/src/lib.rs b/heed/src/lib.rs index 14d2fc50..a651044e 100644 --- a/heed/src/lib.rs +++ b/heed/src/lib.rs @@ -124,3 +124,16 @@ impl From for Error { } pub type Result = result::Result; + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn error_is_send_sync() { + fn give_me_send_sync(_: T) {} + + let error = Error::Encoding(Box::from("There is an issue, you know?")); + give_me_send_sync(error); + } +}