Skip to content

RustRun use cases are unclear, leading to unexpected errors #27

Open
@dmitriyl

Description

@dmitriyl

https://gist.github.com/dmitry-smith/5f72970e84b38ed38db2

:RustRun does not work for me. It always shows the same error:
main.rs:9:25: 9:41 error: unresolved name rand::thread_rng
main.rs:9 let secret_number = rand::thread_rng().gen_range(1, 101);
^~~~~~~~~~~~~~~~
error: aborting due to previous error

But when I try to do the same from a command line with "Cargo run" everything is ok. What can I do to fix it? Thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions