rust/tests/ui/parser/missing-semicolon.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
210 B
Rust
Raw Normal View History

2019-12-03 11:47:44 -06:00
macro_rules! m {
($($e1:expr),*; $($e2:expr),*) => {
2021-08-01 19:55:48 -05:00
$( let x = $e1 )*; //~ ERROR expected one of `.`, `;`, `?`, `else`, or
2019-12-03 11:47:44 -06:00
$( println!("{}", $e2) )*;
}
}
fn main() { m!(0, 0; 0, 0); }