Skip to content

error::Error is not implemented for fmt::Error #33827

Closed
@burtonageo

Description

@burtonageo
Contributor

The Error trait is not implemented for the fmt::Error struct.

Activity

GuillaumeGomez

GuillaumeGomez commented on May 24, 2016

@GuillaumeGomez
Member

Some source code would be appreciated. Context and rustc version as well.

Stebalien

Stebalien commented on May 24, 2016

@Stebalien
Contributor

@GuillaumeGomez I think you're commenting on the wrong bug or misreading the issue. The issue here is that fmt::Error is an error and should implement error::Error but doesn't.

GuillaumeGomez

GuillaumeGomez commented on May 24, 2016

@GuillaumeGomez
Member

@Stebalien: I think I went too fast, indeed. Now @burtonageo also added a description, which helps. :)

GuillaumeGomez

GuillaumeGomez commented on May 24, 2016

@GuillaumeGomez
Member

I'm adding it btw.

pmarcelll

pmarcelll commented on May 28, 2016

@pmarcelll
Contributor

I looked around in the standard library's documentation, the only other case where error::Error is not implemented for an error is FromBytesWithNulError.

GuillaumeGomez

GuillaumeGomez commented on May 28, 2016

@GuillaumeGomez
Member

@pmarcelll: Want to add it maybe? Take a look at my PR if you don't know how to do it.

pmarcelll

pmarcelll commented on May 29, 2016

@pmarcelll
Contributor

Sure, I'll send a PR, but I'm busy currently, so only tomorrow.

GuillaumeGomez

GuillaumeGomez commented on May 29, 2016

@GuillaumeGomez
Member

No problem. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @Stebalien@burtonageo@pmarcelll@GuillaumeGomez@apasel422

        Issue actions

          error::Error is not implemented for fmt::Error · Issue #33827 · rust-lang/rust