I am using the following code to get an integer from a string:
fn main() {
let number: Option<uint> = from_str("5");
}
In compiling, it generates the following:
test2.rs:2:30: 2:38 error: unresolved name from_str
test2.rs:2 let number: Option = from_str("5");
^~~~~~~~
error: aborting due to previous error
System information:
OS X 10.10.1
rustc 0.13.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-apple-darwin
release: 0.13.0-dev
Rust was installed on the eve of January 3, 2015 using brew install rust --HEAD