rustc/vendor/crypto-bigint-0.5.5/tests/const_residue.rs
2024-06-24 14:48:22 +02:00

11 lines
319 B
Rust

//! Test to ensure that `const_residue!` works from outside this crate.
use crypto_bigint::{const_residue, impl_modulus, modular::constant_mod::ResidueParams, U64};
impl_modulus!(TestMod, U64, "30e4b8f030ab42f3");
fn _test_fun() {
let base = U64::from(2u64);
let _base_mod = const_residue!(base, TestMod);
}