Skip to content

newtype_index macro DEBUG_FORMAT = custom not working #45763

Closed
@spastorino

Description

@spastorino

I'm trying to change DefIndex to be defined using newtype_index and calling newtype_index macro this way ...

newtype_index!(DefIndex
    {
        DEBUG_FORMAT = custom

        const DEF_INDEX_HI_START = 1 << 31,

        const CRATE_DEF_INDEX = 0,
    });

Does not work.

/cc @Nashenas88 @nikomatsakis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions