You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
I installed rls while im getting started with rust, and Ive installed the rand package, and it builds just fine with cargo.
However its showing me the following error and not letting me use code completion:
The same errors popup when I use rustc instead of cargo build/run.
use std::io;
use rand::Rng;
fn main() {
println!("Guess the number!");
let secret_number = rand::thread_rng().gen_range(1..101);
println!("The secret number is: {}", secret_number);
println!("Please input your guess.");
let mut guess = String::new();
io::stdin()
.read_line(&mut guess)
.expect("Failed to read line");
println!("You guessed: {}", guess);
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I installed rls while im getting started with rust, and Ive installed the rand package, and it builds just fine with cargo.
However its showing me the following error and not letting me use code completion:
The same errors popup when I use rustc instead of cargo build/run.
The text was updated successfully, but these errors were encountered: