Skip to content

No need to write a const_assert RFC (at most it would be syntactic sugar) #1

@rodrimati1992

Description

@rodrimati1992

The future section in Multiple of 8 const assertion talks about creating a const_assert rfc.

The already accepted rfc for assertions in constants is this one,
which combined with const_wildcard would allow doing const assertions outside of any item.

Example of how it will look once both RFCS are fully implemented:

const _:()=assert!(SIZE % 8 == 0, "total size is required to be a multiple of 8 bits");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions