Skip to content

A generic way to wrap errors would be useful in the standard library #14419

@glandium

Description

@glandium

It would be useful in functions that can fail in different ways from the functions it calls itself, allowing something like:

fn func() -> Result<T, Error> {
  try!(may_return_error_type_A);
  try!(may_return_error_type_B);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions