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 Nov 18, 2022. It is now read-only.
I get autocompletion for the RngCore trait, but for none of the other traits.
My code:
use rand::Rng;
fn main() {
let rnd = rand::thread_rng(). //Expecting autocompletion for gen_range() here
//manually typing "let rnd = rand::thread_rng().gen_range(1..101)" compiles and runs fine.
println!("rnd: {}", rnd)
}
Cargo.toml
[package]
name = "guessing_game"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rand = "0.8.3"
Installed Version of rust-lang.rust vs-code extension:
0.7.8
Trying to follow the rust-book guide, i noticed that there is no autocomplete for the Rng trait on the generator returned by rand::thread_rng().
I get autocompletion for the RngCore trait, but for none of the other traits.
My code:
Cargo.toml
Installed Version of rust-lang.rust vs-code extension:
0.7.8
rustup component list --installed:
The text was updated successfully, but these errors were encountered: