-
Notifications
You must be signed in to change notification settings - Fork 123
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
Constructor generated new should be marked const #131
Comments
A pull request would be accepted for this assuming it doesn't break Rust 1.36.0 (which is the currently lowest supported Rust). To do so you might have to check the version with |
Unfortunately |
Any plans for this? Having const constructors would be a nice feature. |
One option for how it could be rendered is if we add |
For example, given this struct:
The generated code should be:
As far as I know this should be fine to do on the current stable. It's an easy change, would a PR adding this be accepted?
The text was updated successfully, but these errors were encountered: