Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was 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

@Machu101

Description

@Machu101

/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.

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