Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
carols10cents opened this issue Jun 13, 2019 · 2 comments
Closed

Comments

@carols10cents
Copy link
Member

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 ?

@Nemo157
Copy link
Member

Nemo157 commented Jun 28, 2019

std::option::NoneError which allows both links to rust-lang/rust#42327.

@ehuss
Copy link
Contributor

ehuss commented May 25, 2021

Closing per #232, this section has been removed. Hopefully when those changes are stabilized it will trickle out to the right documentation.

@ehuss ehuss closed this as completed May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants