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

Implement option to deny exit from function without "return" statement #2685

Closed
EdSaleh opened this issue Apr 20, 2018 · 1 comment
Closed

Comments

@EdSaleh
Copy link

EdSaleh commented Apr 20, 2018

Hello,
I would like to propose: Option to deny exit from function without "return" statement.
This would be a good option for people coming from most other programming languages who are used to used to return from functions.

Thank You,

@oli-obk
Copy link
Contributor

oli-obk commented Apr 20, 2018

That's not idiomatic Rust. But we'd accept a restriction lint.

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

2 participants