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

? operator #7

Closed
taiki-e opened this issue Jan 24, 2019 · 0 comments
Closed

? operator #7

taiki-e opened this issue Jan 24, 2019 · 0 comments
Labels
A-auto_enum Area: #[auto_enum] C-enhancement Category: A new feature or an improvement for an existing one

Comments

@taiki-e
Copy link
Owner

taiki-e commented Jan 24, 2019

It probably can support this by letting the attribute do the same processing as the operator, and replace the operator. This is done only if the return value of the function is Result<T, impl Trait>.

For other types and type aliases, I do not know how to determine whether the return type is Result<T, impl Trait> or not, so I think that we can not support it for the time being.

bors bot added a commit that referenced this issue Jan 26, 2019
10: Add support for '?' operator in functions and closures r=taiki-e a=taiki-e

Fixes #7

Co-authored-by: Taiki Endo <[email protected]>
@bors bors bot closed this as completed in #10 Jan 26, 2019
@taiki-e taiki-e mentioned this issue Feb 10, 2019
@taiki-e taiki-e added the C-enhancement Category: A new feature or an improvement for an existing one label Oct 6, 2019
@taiki-e taiki-e added the A-auto_enum Area: #[auto_enum] label Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-auto_enum Area: #[auto_enum] C-enhancement Category: A new feature or an improvement for an existing one
Projects
None yet
Development

No branches or pull requests

1 participant