ConstDefault

I see RFC: The ConstDefault trait was closed in favor of RFC: const bounds and methods, which was closed also.

I frequently need const initializers, so I wondered about why we don't have ConstDefault already.

Is this still on the radar?

1 Like

Yes, people are working on a solution to this: https://github.com/rust-lang/rust/issues/67792

4 Likes

Cool, thank you!

The current RFC for this work is #2632.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.