-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Impl Error for Infallible #70842
Copy link
Copy link
Closed
Labels
A-error-handlingArea: Error handlingArea: Error handlingC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: 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.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-error-handlingArea: Error handlingArea: Error handlingC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: 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.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Is there a reason why
std::convert::Infallibledoes not implementstd::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
Infalliblealready implementsDebugandDisplay.