-1

My Cargo.toml file looks like this:

[dependencies]
unicode-segmentation = "1.10.0"

[package]
edition = "2021"
name = "reverse_string"
version = "1.2.0"

There is a dependency of unicode-segmentation.

I am using rustc 1.64 and when I run cargo test, I get this error:

help: please recompile that crate using this compiler (rustc 1.62.1) (consider running cargo clean first) = note: the following crate versions were found: crate unicode_segmentation compiled by rustc 1.64.0

dagda1
  • 26,856
  • 59
  • 237
  • 450

1 Answers1

-1

I had this problem on a mac and I had installed rust with both brew and rustup. I uninstalled the brew version.

brew uninstall rust

endonym
  • 3
  • 2
  • there is only 1 rust. When I run `where rustc` or `where cargo` they both point to 1 location and I never installed rust with cargo – dagda1 Oct 29 '22 at 12:10