rust/src/test/ui/missing/missing-semicolon-warning.rs
2018-12-25 21:08:33 -07:00

13 lines
238 B
Rust

// compile-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); }