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
And I get this error message when trying to compile:
$ rustc -v
rustc 0.11.0-pre (0ee6a8e 2014-06-09 23:41:53 -0700)
host: x86_64-apple-darwin
$ rustc foo.rs
foo.rs:1:5: 1:26 error: unresolved import: could not find `hashmap` in `std`.
foo.rs:1 use std::hashmap::HashMap;
^~~~~~~~~~~~~~~~~~~~~
foo.rs:1:5: 1:26 error: failed to resolve import `std::hashmap::HashMap`
foo.rs:1 use std::hashmap::HashMap;
^~~~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
I'm really struggling to find how to solve this error; I don't really know about rust's package management system, I don't know how to browse what I have or to install something that I don't have, and reading guides is frustrating because they always seem to be out of date. Can anyone help me with this? How do I get a hash map in rust?
The text was updated successfully, but these errors were encountered:
For the record, because I (being a Rust beginner) had trouble importing HashMap as well, and I came across this issue which helped me to find the solution:
Use `ArgumentV1` instead of `Argument`
Now that the choice is between supporting stable and supporting nothing, let's support stable.
cc rust-lang#15082
I'm a Rust beginner trying to write some code which uses a HashMap.
As per this documentation, I have this line:
And I get this error message when trying to compile:
I'm really struggling to find how to solve this error; I don't really know about rust's package management system, I don't know how to browse what I have or to install something that I don't have, and reading guides is frustrating because they always seem to be out of date. Can anyone help me with this? How do I get a hash map in rust?
The text was updated successfully, but these errors were encountered: