summary refs log tree commit diff
path: root/src/test/ui/missing/missing-semicolon-warning.rs
blob: d962a52139eea847d01cbaa3bcbb754ef4ab6dba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// build-pass (FIXME(62277): could be check-pass?)
#![allow(unused)]

macro_rules! m {
    ($($e1:expr),*; $($e2:expr),*) => {
        $( let x = $e1 )*; //~ WARN expected `;`
        $( println!("{}", $e2) )*; //~ WARN expected `;`
    }
}


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