Rustlang “No Override and no default Toolchain set

Error: rustc –version error: rustc –version

no override and no default toolchain set
Copy the code

Cause of error, Rust is not installed correctly, we can do the following operations:

  1. Install stable versions through Rustup
$ rustup install stable
Copy the code
  1. Set stable to the default version
$ rustup default stable
Copy the code