Reputation: 141
I am relatively new to rust and I was trying to build a game using an online tutorial when I encountered this error. Can someone please tell me what this error is and how to solve it?
I switched from stable rust version to nightly using rustup default nightly
:-
rustc 1.46.0-nightly (feb3536eb 2020-06-09)
. still the error didn't go
These are the dependencies I am trying to install:
piston = "0.50.0"
piston2d-graphics = "0.36.0"
pistoncore-glutin_window = "0.64.0"
piston2d-opengl_graphics = "0.72.0"
Thanks in advance!!
Upvotes: 8
Views: 1781
Reputation: 95
in case when you can't update rust with below error after running rustup update, like in my case
rustup update
info: self-update is disabled for this build of rustup
info: any updates to rustup will need to be fetched with your system package manager
Then the fix for me was to remove old versions of rust, cargo (1.75) from apt and snap in Linux and then to install new versions (1.82) of rust, cargo using official way like below
# removal of old version
sudo snap remove rustup
sudo apt remove rust*
sudo apt autoremove
# installation of official new version like mentioned in website below
curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh
https://www.digitalocean.com/community/tutorials/install-rust-on-ubuntu-linux
Upvotes: 0
Reputation: 141
Updating to the latest version of rust using rustup update
solves the error
Upvotes: 6