You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cannot call non-const fn `<AesGcm<aes_gcm::aes::Aes256, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>> as KeySizeUser>::key_size` in constants
calls in constants are limited to constant functions, tuple structs and tuple variants
It seems like key_size could be made const just by adding const to it.
The text was updated successfully, but these errors were encountered:
Trait methods can not be currently made const on stable Rust. You should import the aead::generic_array::typenum::Unsigned trait and use Aes256Gcm::KeySize::USIZE.
I am trying to use
key_size
like this:But that isn't currently possible:
It seems like
key_size
could be made const just by addingconst
to it.The text was updated successfully, but these errors were encountered: