Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

error[E0514]: found crate rand_core compiled by an incompatible version of rustc #1754

Open
Machu101 opened this issue Nov 27, 2021 · 0 comments

Comments

@Machu101
Copy link

Machu101 commented Nov 27, 2021

/home/matthewquijano/.cargo/registry/src/github.com-1ecc6299db9ec823/ff-0.10.0/src/lib.rs:21:5
|
21 | use rand_core::RngCore;
| ^^^^^^^^^
|
= help: please recompile that crate using this compiler (rustc 1.51.0 (2fd73fabe 2021-03-23))
= note: the following crate versions were found:
crate rand_core compiled by rustc 1.56.1 (59eed8a2a 2021-11-01):

Can anyone help me with this? Trying to run a test on a smart contract and this error keeps popping up. Now I read in another thread with a similar problem that it had something to do with Rust being installed twice. I have Rust installed in my windows Usr folder, as well as my \wsl$\Ubuntu-18.04, since I am using Linux virtual machine to run rust within vscode. Any help would be greatly appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant