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
What could be causing the below? I have not been able to figure if there is another crate with same name.
use num_bigint::{BigUint, BigInt}; use num_rational::BigRational;
|
38 | let f = BigRational::new(BigInt::one(), BigInt::one());
| ^^^^^^^^^^^^^ expected struct `num_bigint::bigint::BigInt`, found struct `BigInt`
|
= note: perhaps two different versions of crate `num_bigint` are being used?
The text was updated successfully, but these errors were encountered:
It means your num_bigint dependency version doesn't match the indirect dependency used by your version of num_rational. The compiler treats different versions as completely distinct types. You can run cargo tree to see which is which.
You should make sure both dependencies are updated to their latest version in your Cargo.toml.
What could be causing the below? I have not been able to figure if there is another crate with same name.
use num_bigint::{BigUint, BigInt};
use num_rational::BigRational;
The text was updated successfully, but these errors were encountered: