mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-05 18:47:18 +00:00
11 lines
318 B
Rust
11 lines
318 B
Rust
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() {}
|