diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-24 17:07:45 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-24 17:10:13 +0100 |
commit | 5f0f830149c8241285e4c4ae6bd97a9482b1da1c (patch) | |
tree | 0b8edb15d2c6d9f0afe07d8b46223c8645be45ba /openpgp/src/policy.rs | |
parent | 05780a65b4651382c9135257ed744eed8666f81a (diff) |
openpgp: Test that StandardPolicy can be a global const.
Diffstat (limited to 'openpgp/src/policy.rs')
-rw-r--r-- | openpgp/src/policy.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openpgp/src/policy.rs b/openpgp/src/policy.rs index 451af300..e0cd0088 100644 --- a/openpgp/src/policy.rs +++ b/openpgp/src/policy.rs @@ -952,6 +952,9 @@ mod test { use crate::types::KeyFlags; use crate::types::SymmetricAlgorithm; + // Test that the constructor is const. + const _A_STANDARD_POLICY: StandardPolicy = StandardPolicy::new(); + #[test] fn binding_signature() { let p = &P::new(); |