Skip to content

mem::size_of() is not a const function #34078

Closed
@DemiMarie

Description

@DemiMarie

mem::size_of() is not a const function, even though it is always a compile-time constant. This is seemingly arbitrary and is annoying in practice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions