virtue
virtue copied to clipboard
`generate_const` on generator and `ImplMod`
it would be nice to be able to generate compile-time checks. These are usually in the form of:
const _: () = { if !some_check() { panic!(""); }};
this does not work in impl Foo { .. } blocks as rust will not allow underscore names on associated consts.
We should have a copy of generate_const on both the generator (top level) and ImplMod (nested mod)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.