Skip to content

Tracking issue for ? on either Option or Result in the same function #169

@carols10cents

Description

@carols10cents

This section will need to be updated:

https://github.com/rust-lang-nursery/edition-guide/blame/1a7b200935c9a0c0964f928a92144e9e84e96d89/src/rust-2018/error-handling-and-panics/the-question-mark-operator-for-easier-error-handling.md#L117-L120

One current restriction is that you cannot use ? for both in the same function, as the return type needs to match the type you use ? on. In the future, this restriction will be lifted.

I'm not sure what the right Rust tracking issue to link to is. Maybe rust-lang/rust#31436 ?

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