Skip to content

matching on std::net::AddrParseError triggers "use of unmarked library feature" #27075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
crawford opened this issue Jul 16, 2015 · 2 comments
Closed

Comments

@crawford
Copy link

match Ipv4Addr::from_str(blah) {
    Ok(ip) => Ok(ip),
    Err(AddrParseError(_)) => Err("cannot parse address")
}
src/main.rs:84:32: 84:33 error: use of unmarked library feature
src/main.rs:84             Err(AddrParseError(_)) => Err("cannot parse address")
                                              ^
src/main.rs:84:32: 84:33 note: this is either a bug in the library you are using or a bug in the compiler - please report it in both places
src/main.rs:84             Err(AddrParseError(_)) => Err("cannot parse address")
                                              ^
src/main.rs:84:32: 84:33 note: use #![feature(unmarked_api)] in the crate attributes to override this
src/main.rs:84             Err(AddrParseError(_)) => Err("cannot parse address")
                                              ^
error: aborting due to previous error
$ rustc --version --verbose
rustc 1.1.0 (35ceea399 2015-06-19)
binary: rustc
commit-hash: 35ceea3997c79a3b7562e89b462ab76af5b86b22
commit-date: 2015-06-19
host: x86_64-unknown-linux-gnu
release: 1.1.0

$ cargo --version
cargo 0.3.0 (built 2015-07-08)
@tamird
Copy link
Contributor

tamird commented Jul 16, 2015

#27069

@steveklabnik
Copy link
Member

since #27069 has been merged, i'm giving this a close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants