summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-102878.rs
blob: aac5891939e0ce823f9333fb7affcb831d3a0844 (plain)
1
2
3
4
5
6
7
8
9
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() {}