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

Is there an RFC for this? #9

Open
sffc opened this issue Jan 11, 2022 · 1 comment
Open

Is there an RFC for this? #9

sffc opened this issue Jan 11, 2022 · 1 comment

Comments

@sffc
Copy link

sffc commented Jan 11, 2022

The ConstDefault trait is great, and it should belong in the standard library. Are you aware of (or proposing yourself) an RFC to add this to the Rust standard library?

@AerialX
Copy link
Owner

AerialX commented Jan 11, 2022

Well the hope is that const_trait_impl will cover this by simply allowing std::default::Default to be usable in const contexts, and then this trait could be superseded by a ~const Default bound! It even looks like unstable rust has gained some const Default impls semi-recently.

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