]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-102878.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / macros / issue-102878.rs
1 macro_rules!test{($l:expr,$_:r)=>({const:y y)}
2 //~^ ERROR mismatched closing delimiter: `)`
3 //~| ERROR invalid fragment specifier `r`
4 //~| ERROR expected identifier, found keyword `const`
5 //~| ERROR expected identifier, found keyword `const`
6 //~| ERROR expected identifier, found `:`
7
8 fn s(){test!(1,i)}
9
10 fn main() {}