Skip to content

Duplicated invalid fragment specifier error #29231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sanxiyn opened this issue Oct 22, 2015 · 0 comments
Closed

Duplicated invalid fragment specifier error #29231

sanxiyn opened this issue Oct 22, 2015 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)

Comments

@sanxiyn
Copy link
Member

sanxiyn commented Oct 22, 2015

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)
               ^~~~~~~~
@sanxiyn sanxiyn added A-diagnostics Area: Messages for errors, warnings, and lints A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) labels Oct 22, 2015
@bors bors closed this as completed in eb364e9 May 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Projects
None yet
Development

No branches or pull requests

1 participant