Skip to content

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

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);
}

Activity

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

      Issue actions