Skip to content

from_str producing an unresolved name error #20525

@davidenglishmusic

Description

@davidenglishmusic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions