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

no explicit returns in diverging fns, even if the returned expr diverges #35888

Closed
durka opened this issue Aug 22, 2016 · 1 comment
Closed

Comments

@durka
Copy link
Contributor

durka commented Aug 22, 2016

This works:

fn foo() -> ! { panic!() }

This doesn't work:

fn foo() -> ! { return panic!(); }
@durka
Copy link
Contributor Author

durka commented Aug 22, 2016

This was already fixed by #35162 I guess.

@durka durka closed this as completed Aug 22, 2016
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

1 participant