summaryrefslogtreecommitdiffstats
path: root/openpgp/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/lib.rs')
-rw-r--r--openpgp/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs
index bb143d2f..8e3dee31 100644
--- a/openpgp/src/lib.rs
+++ b/openpgp/src/lib.rs
@@ -298,3 +298,9 @@ pub enum Error {
.unwrap_or("".into()))]
PolicyViolation(String, Option<std::time::SystemTime>),
}
+
+#[test]
+fn error_is_send_and_sync() {
+ fn f<T: Send + Sync>(_: T) {}
+ f(Error::IndexOutOfRange);
+}