Skip to content

std::net::AddrParseError doesn't implement std::error::Error #27973

Closed
@JCRPaquin

Description

@JCRPaquin

I was writing a generic argument parse validator for my program, which involved matching errors from FromStr::parse. After constraining the error type to Error, I ran into an issue when creating a validator for parsing IP addresses:

main.rs:48:24: 48:47 error: the trait `std::error::Error` is not implemented for the type
 `std::net::parser::AddrParseError` [E0277]

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