diff options
Diffstat (limited to 'tests/ui/macros/macro-invalid-fragment-spec.rs')
-rw-r--r-- | tests/ui/macros/macro-invalid-fragment-spec.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-invalid-fragment-spec.rs b/tests/ui/macros/macro-invalid-fragment-spec.rs new file mode 100644 index 000000000..dc4d75096 --- /dev/null +++ b/tests/ui/macros/macro-invalid-fragment-spec.rs @@ -0,0 +1,8 @@ +macro_rules! foo( + ($x:foo) => () + //~^ ERROR invalid fragment specifier +); + +fn main() { + foo!(foo); +} |