Skip to content

Duplicated invalid fragment specifier error #29231

Closed
@sanxiyn

Description

@sanxiyn
macro_rules! mac {
    ($x:xyzzy) => ($x)
}
fn main() {
    mac!(0);
}
test.rs:2:6: 2:14 error: invalid fragment specifier `xyzzy`
test.rs:2     ($x:xyzzy) => ($x)
               ^~~~~~~~
test.rs:2:6: 2:14 error: invalid fragment specifier `xyzzy`
test.rs:2     ($x:xyzzy) => ($x)
               ^~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions