Require a PrimeField to be its own PrimeField (#383)

This commit is contained in:
Jakub Nabaglo 2021-12-02 16:14:47 -08:00 committed by GitHub
parent c6ac8e1b3e
commit 5eaa1ad529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -404,7 +404,7 @@ pub trait Field:
}
/// A finite field of prime order less than 2^64.
pub trait PrimeField: Field {
pub trait PrimeField: Field<PrimeField = Self> {
const ORDER: u64;
/// The number of bits required to encode any field element.