blob: 5f8bbaa3d1e66a8195ae9b6a81d28bbf4ae99cc9 [file] [log] [blame] [edit]
//@ run-rustfix
macro_rules! m {
(begin $($ard:ident),* end) => {
[$($ard),*] //~ ERROR attempted to repeat an expression containing no syntax variables matched as repeating at this depth
//~^ HELP there's a macro metavariable with a similar name
};
}
fn main() {
let x = 1;
let _ = m![begin x end];
}