Skip to content

uint crate cannot create very large integers #388

@That3Percent

Description

@That3Percent

Trying to create a U4096 type with:

use uint::construct_uint;
construct_uint! {
    pub struct U4096(64);
}

Rust-analyzer produces various errors:

arrays only have std trait implementations for lengths 0..=32
required because of the requirements on the impl of `std::cmp::Eq` for `[u64; 64]`
required by `std::cmp::AssertParamIsEq`rustc(E0277)
binary operation `==` cannot be applied to type `[u64; 64]`rustc(E0369)
binary operation `!=` cannot be applied to type `[u64; 64]`rustc(E0369)
arrays only have std trait implementations for lengths 0..=32
required because of the requirements on the impl of `std::hash::Hash` for `[u64; 64]`rustc(E0277)
mod.rs(176, 13): required by this bound in `std::hash::Hash::hash`

And trying to do cargo check seems to hang the compiler indefinitely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions