diff options
Diffstat (limited to 'tests/ui/macros/issue-102878.rs')
-rw-r--r-- | tests/ui/macros/issue-102878.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-102878.rs b/tests/ui/macros/issue-102878.rs new file mode 100644 index 000000000..aac589193 --- /dev/null +++ b/tests/ui/macros/issue-102878.rs @@ -0,0 +1,10 @@ +macro_rules!test{($l:expr,$_:r)=>({const:y y)} +//~^ ERROR mismatched closing delimiter: `)` +//~| ERROR invalid fragment specifier `r` +//~| ERROR expected identifier, found keyword `const` +//~| ERROR expected identifier, found keyword `const` +//~| ERROR expected identifier, found `:` + +fn s(){test!(1,i)} + +fn main() {} |