Skip to content

Impl Error for Infallible #70842

Closed
Closed
@a1phyr

Description

@a1phyr

Is there a reason why std::convert::Infallible does not implement std::error::Error ? I could not find anything about this, apart from the planned replacement by ! type.

If not, could this be implemented ? It would be very useful for generic code, and would not be complex as Infallible already implements Debug and Display.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-error-handlingArea: Error handlingC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions