Skip to content

Document $crate in macro matcher #588

Open
@ehuss

Description

@ehuss

$crate in a macro matcher can only match the literal tokens $ crate (I think). That is:

// This does NOT take a token tree. It takes 4 tokens: `$` `crate` `:` `tt`
macro_rules! m {
    ($crate:tt) => ()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions