diff options
Diffstat (limited to 'openpgp/src/keyid.rs')
-rw-r--r-- | openpgp/src/keyid.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/src/keyid.rs b/openpgp/src/keyid.rs index 2e77c962..275599f9 100644 --- a/openpgp/src/keyid.rs +++ b/openpgp/src/keyid.rs @@ -215,4 +215,10 @@ mod test { assert_match!(KeyID::Invalid(_) = KeyID::from_hex("0x587DAEF1").unwrap()); } + + #[test] + fn keyid_is_send_and_sync() { + fn f<T: Send + Sync>(_: T) {} + f(KeyID::from_hex("89AB CDEF 0123 4567").unwrap()); + } } |