This may happen when Rust is installed by your distro's package manager instead of rustup. The cause is Rust source code not being automatically installed along with the compiler.
To fix, run:
sudo apt install rust-srcor
sudo dnf install rust-srcThis may happen when Rust is installed by your distro's package manager instead of rustup. The cause is Rust source code not being automatically installed along with the compiler.
To fix, run:
sudo apt install rust-srcor
sudo dnf install rust-src