summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/missing-semicolon.rs
blob: f68d177c01f1fe04061871d6a4aa7d9ccbd0ea69 (plain)
1
2
3
4
5
6
7
8
macro_rules! m {
    ($($e1:expr),*; $($e2:expr),*) => {
        $( let x = $e1 )*; //~ ERROR expected one of `.`, `;`, `?`, `else`, or
        $( println!("{}", $e2) )*;
    }
}

fn main() { m!(0, 0; 0, 0); }